Fixed connection

This commit is contained in:
zeldaroot 2021-03-18 11:09:38 +02:00
parent dba6516d93
commit 4cfc17a26a
2 changed files with 8 additions and 4 deletions

View file

@ -3001,7 +3001,7 @@ while [ "${WHILE}" -lt "2" ]; do
sh_progress 100
exit 0
;;
"l"|"ll"|"lp"|"lm"|"ls"|"llp"|"log"|"logs"|"live"|"lb"|"lbt"|"lbf"|"lbb" )
"l"|"ll"|"lp"|"lm"|"lms"|"ls"|"llp"|"log"|"logs"|"live"|"lb"|"lbt"|"lbf"|"lbb" )
if [ "${1}" = "lb" ] || [ "${1}" = "lbt" ] || [ "${1}" = "lbf" ] || [ "${1}" = "lbb" ] || [ "${2}" = "bot" ] || [ "${2}" = "bots" ]; then
RR='\o033[0;31m'
GG='\o033[0;32m'
@ -3110,7 +3110,7 @@ while [ "${WHILE}" -lt "2" ]; do
-n0 -f /home/*/log/movies*.log
exit 0
fi
if [ "${1}" = "ls" ]; then
if [ "${1}" = "ls" ] || [ "${1}" = "lms" ]; then
_br
tail \
-n0 -f /home/*/log/movies*.log \

View file

@ -1206,7 +1206,9 @@ if (Math.ceil(os.freemem()) < 50) {
}
pool.getConnection(function(err, connection) {
if (err) {
connection.release();
if (typeof connection !== 'undefined' && connection) {
connection.release();
}
return callback();
}
connection.query(
@ -1216,7 +1218,9 @@ if (Math.ceil(os.freemem()) < 50) {
w +
' LIMIT 0,1 OPTION max_matches = 1',
function(err, rt) {
connection.release();
if (typeof connection !== 'undefined' && connection) {
connection.release();
}
if (err) {
console.error(err);
return callback('STOP');