diff --git a/services/web/public/coffee/ide/editor/ShareJsDoc.coffee b/services/web/public/coffee/ide/editor/ShareJsDoc.coffee index 176ceee51f..ae07a8ca7a 100644 --- a/services/web/public/coffee/ide/editor/ShareJsDoc.coffee +++ b/services/web/public/coffee/ide/editor/ShareJsDoc.coffee @@ -34,7 +34,8 @@ define [ if window.dropUpdates? and Math.random() < window.dropUpdates sl_console.log "Simulating a lost update", update return - @socket.emit "applyOtUpdate", @doc_id, update + @socket.emit "applyOtUpdate", @doc_id, update, (error) => + return @_handleError(error) if error? state: "ok" id: @socket.socket.sessionid }