aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-20 00:22:51 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-20 00:31:03 -0500
commitd860c2506c0d4ad19974382e37ae9ee2da8f73e5 (patch)
tree3a12cf439599aefe3c9b7b807d286197d0d27dbc
parent70bbc86cdb2f5b98612966b226f7b3ac6be7e80c (diff)
forgot to init var in writewrap
-rw-r--r--utils/writewrap.js2
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);
});
}
}