Fix bad connection debugging parameters

This commit is contained in:
James Allen 2015-11-19 13:15:51 +00:00
parent 442ae638de
commit dea97bb9dc

View file

@ -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