disabled reconnection on error if reconnect option is set to false

This commit is contained in:
vedratna
2011-12-05 18:08:59 +05:30
parent e7fc25ebf3
commit 7155d84af9

View File

@@ -406,7 +406,7 @@
Socket.prototype.onError = function (err) {
if (err && err.advice) {
if (err.advice === 'reconnect' && this.connected) {
if (this.options.reconnect && err.advice === 'reconnect' && this.connected) {
this.disconnect();
this.reconnect();
}