소스 검색

Try to reconnect when the user types in the editor.

Shane Kilkelly 11 년 전
부모
커밋
b393de1450
1개의 변경된 파일과 2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      services/web/public/coffee/ide/connection/ConnectionManager.coffee

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

@@ -21,6 +21,8 @@ define [], () ->
 
 			@$scope.$on "editor:change", () =>
 				@lastUpdated = new Date()
+				if !@connected
+					@tryReconnect()
 
 			@ide.socket = io.connect null,
 				reconnect: false