1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 19:37:38 +00:00

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

View file

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