소스 검색

Fix bad connection debugging parameters

James Allen 11 년 전
부모
커밋
dea97bb9dc
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/web/public/coffee/ide/editor/ShareJsDoc.coffee

+ 1 - 1
services/web/public/coffee/ide/editor/ShareJsDoc.coffee

@@ -31,7 +31,7 @@ define [
 					if window.disconnectOnUpdate? and Math.random() < window.disconnectOnUpdate
 						console.log "Disconnecting on update", update
 						window._ide.socket.socket.disconnect()
-					if window.dropUpdates? and Math.random() < window.dropAcks
+					if window.dropUpdates? and Math.random() < window.dropUpdates
 						console.log "Simulating a lost update", update
 						return
 					@socket.emit "applyOtUpdate", @doc_id, update