Quellcode durchsuchen

Clear countdown before returning from reconnect

James Allen vor 12 Jahren
Ursprung
Commit
3055231f75
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      services/web/public/coffee/ide/connection/ConnectionManager.coffee

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

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