You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.conn.addListener("data", function (chunk) {
buffer += chunk;
var lines = buffer.split("\r\n");
buffer = lines.pop();
lines.forEach(function (line) {
the crash:
/home/sha0/soft/node-irc/lib/irc.js:534
throw err;
^
Error: Uncaught, unspecified 'error' event.
at Client.emit (events.js:50:15)
at Client. (/home/sha0/soft/node-irc/lib/irc.js:422:26)
at Client.emit (events.js:67:17)
at /home/sha0/soft/node-irc/lib/irc.js:531:22
at Array.forEach (native)
at Socket. (/home/sha0/soft/node-irc/lib/irc.js:528:15)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:372:31)
The text was updated successfully, but these errors were encountered:
Sometimes lines is empty and the forEach crashes:
self.conn.addListener("data", function (chunk) {
buffer += chunk;
var lines = buffer.split("\r\n");
buffer = lines.pop();
lines.forEach(function (line) {
the crash:
/home/sha0/soft/node-irc/lib/irc.js:534
throw err;
^
Error: Uncaught, unspecified 'error' event.
at Client.emit (events.js:50:15)
at Client. (/home/sha0/soft/node-irc/lib/irc.js:422:26)
at Client.emit (events.js:67:17)
at /home/sha0/soft/node-irc/lib/irc.js:531:22
at Array.forEach (native)
at Socket. (/home/sha0/soft/node-irc/lib/irc.js:528:15)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:372:31)
The text was updated successfully, but these errors were encountered: