kopia lustrzana https://github.com/c9/core
unhandled error doesn't make new engineio reconnect
rodzic
6d9a77b720
commit
0175a9d88d
|
@ -128,14 +128,7 @@ ReliableSocket.prototype.onMessage = function(msg) {
|
|||
this.emit(msg.t, msg);
|
||||
}
|
||||
else if (msg.d) {
|
||||
try {
|
||||
this.emit("message", msg.d);
|
||||
} catch (e) {
|
||||
console.error(e.stack);
|
||||
// Don't let engine.io catch this, it'll consider it a parser error,
|
||||
// making us reconnect
|
||||
setTimeout(function() { throw e; });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue