Ver Fonte

Don't try reconnect if connected

James Allen há 12 anos atrás
pai
commit
a002709870

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

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