mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
disabled reconnection on error if reconnect option is set to false
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user