Răsfoiți Sursa

Clear countdown before returning from reconnect

James Allen 12 ani în urmă
părinte
comite
3055231f75

+ 1 - 1
services/web/public/coffee/ide/connection/ConnectionManager.coffee

@@ -105,9 +105,9 @@ define [], () ->
 
 		tryReconnect: () ->
 			@cancelReconnect()
+			delete @$scope.connection.reconnection_countdown
 			return if @connected
 			@$scope.connection.reconnecting = true
-			delete @$scope.connection.reconnection_countdown
 			@ide.socket.socket.reconnect()
 			setTimeout (=> @startAutoReconnectCountdown() if !@connected), 2000