From ed1334514fbe27857ff1dd43b8dd4e3b4f637e09 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 5 Jan 2014 22:37:59 -0800 Subject: [PATCH] Fixed: No longer showing connect lost messages when trying to reconnect --- src/UI/Shared/SignalRBroadcaster.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/UI/Shared/SignalRBroadcaster.js b/src/UI/Shared/SignalRBroadcaster.js index 296f81457..419c398da 100644 --- a/src/UI/Shared/SignalRBroadcaster.js +++ b/src/UI/Shared/SignalRBroadcaster.js @@ -29,7 +29,6 @@ define( var tryingToReconnect = false; var messengerId = 'signalR'; - var reconnectTimeout; this.signalRconnection = $.connection('/signalr'); @@ -47,19 +46,9 @@ define( } tryingToReconnect = true; - - reconnectTimeout = window.setTimeout(function () { - Messenger.show({ - id : messengerId, - type : 'info', - hideAfter : 0, - message : 'Connection to backend lost, attempting to reconnect' - }); - }, 10000); }); this.signalRconnection.reconnected(function() { - window.clearTimeout(reconnectTimeout); tryingToReconnect = false; var currentVersion = StatusModel.get('version');