app socket: don't reconnect on error

This commit is contained in:
rolux 2014-05-11 16:39:20 +02:00 committed by j
parent f7098502a0
commit 6c1273f03a

View file

@ -52,7 +52,7 @@ Ox.App = function(options) {
}; };
that.socket.onerror = function(event) { that.socket.onerror = function(event) {
that.triggerEvent('error', event); that.triggerEvent('error', event);
setTimeout(connectSocket, 1000) that.socket.close();
}; };
that.socket.onclose = function(event) { that.socket.onclose = function(event) {
that.triggerEvent('close', event); that.triggerEvent('close', event);