Don't try reconnect if connected

This commit is contained in:
James Allen
2014-07-17 13:44:50 +01:00
parent a3faaf0c18
commit a002709870
@@ -105,6 +105,7 @@ define [], () ->
tryReconnect: () ->
@cancelReconnect()
return if @connected
@$scope.connection.reconnecting = true
delete @$scope.connection.reconnection_countdown
@ide.socket.socket.reconnect()