From 6c1273f03a243fb62a5a0b3b6c9e801e3604bcde Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 11 May 2014 16:39:20 +0200 Subject: [PATCH] app socket: don't reconnect on error --- source/Ox.UI/js/Core/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/App.js b/source/Ox.UI/js/Core/App.js index cbe32bc0..da3c5220 100644 --- a/source/Ox.UI/js/Core/App.js +++ b/source/Ox.UI/js/Core/App.js @@ -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);