Explorar o código

- Add triming operator before executing

Parad0x %!s(int64=7) %!d(string=hai) anos
pai
achega
792d6d5ce6
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/connectionHandler.js

+ 4 - 1
src/connectionHandler.js

@@ -49,7 +49,10 @@ class Connection {
 
       while (this.queue.length > 0) {
         let op = this.queue.removeSync();
-        await this.execute(op);
+        op = op.trim();
+        if (op.length > 0) {
+          await this.execute(op);
+        }
       }
     })