diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-20 00:22:51 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-20 00:31:03 -0500 |
commit | d860c2506c0d4ad19974382e37ae9ee2da8f73e5 (patch) | |
tree | 3a12cf439599aefe3c9b7b807d286197d0d27dbc | |
parent | 70bbc86cdb2f5b98612966b226f7b3ac6be7e80c (diff) |
forgot to init var in writewrap
-rw-r--r-- | utils/writewrap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/writewrap.js b/utils/writewrap.js index 96f1ad1..3ca7ede 100644 --- a/utils/writewrap.js +++ b/utils/writewrap.js @@ -5,7 +5,7 @@ class wwrap extends EventEmitter{ constructor(socket){ super(); socket.on('write', (acc) => { // Assumed that none are rejected because I've never seen it - for (w of acc) this.emit(w); + for (let w of acc) this.emit(w); }); } } |