瀏覽代碼

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