app socket: don't reconnect on error
This commit is contained in:
parent
f7098502a0
commit
6c1273f03a
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ Ox.App = function(options) {
|
|||
};
|
||||
that.socket.onerror = function(event) {
|
||||
that.triggerEvent('error', event);
|
||||
setTimeout(connectSocket, 1000)
|
||||
that.socket.close();
|
||||
};
|
||||
that.socket.onclose = function(event) {
|
||||
that.triggerEvent('close', event);
|
||||
|
|
Loading…
Reference in a new issue