From c81e96909709d91240beddc640797e2cf1d2a5db Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 9 Apr 2018 23:26:14 +0200 Subject: [PATCH] Reverted 10 msec wait to prevent sys resources flooding on retries --- platypush/backend/http/static/js/application.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/backend/http/static/js/application.js b/platypush/backend/http/static/js/application.js index c61ef289c..b2562c2b7 100644 --- a/platypush/backend/http/static/js/application.js +++ b/platypush/backend/http/static/js/application.js @@ -33,8 +33,7 @@ $(document).ready(function() { console.log('Websocket closed, code: ' + event.code); websocketReconnectInterval = setInterval(function() { initWebsocket(); - }, event.code == 1000 ? 10 : 5000); // Reconnect immediately in case of normal websocket closure - // otherwise wait 5 seconds + }, 5000); }; };