mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix bad connection debugging parameters
This commit is contained in:
parent
442ae638de
commit
dea97bb9dc
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ define [
|
||||||
if window.disconnectOnUpdate? and Math.random() < window.disconnectOnUpdate
|
if window.disconnectOnUpdate? and Math.random() < window.disconnectOnUpdate
|
||||||
console.log "Disconnecting on update", update
|
console.log "Disconnecting on update", update
|
||||||
window._ide.socket.socket.disconnect()
|
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
|
console.log "Simulating a lost update", update
|
||||||
return
|
return
|
||||||
@socket.emit "applyOtUpdate", @doc_id, update
|
@socket.emit "applyOtUpdate", @doc_id, update
|
||||||
|
|
Loading…
Reference in a new issue