Browse Source

- Add triming operator before executing

Parad0x 7 years ago
parent
commit
792d6d5ce6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/connectionHandler.js

+ 4 - 1
src/connectionHandler.js

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