unhandled error doesn't make new engineio reconnect

pull/313/head
c9bot 2016-06-05 23:00:50 +02:00 zatwierdzone przez nightwing
rodzic 6d9a77b720
commit 0175a9d88d
1 zmienionych plików z 1 dodań i 8 usunięć

Wyświetl plik

@ -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; });
}
this.emit("message", msg.d);
}
};