Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbrowne committed Mar 27, 2024
1 parent 72debf9 commit edc9630
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/client/doc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class Doc
# Only one op can be in-flight at a time, so if an op is already on its way then
# this method does nothing.
flush: =>
return unless @connection.state == 'ok' and @inflightOp == null and @pendingOp != null
return unless @connection.state == 'ok' and @state == 'open' and @inflightOp == null and @pendingOp != null

# Rotate null -> pending -> inflight
@inflightOp = @pendingOp
Expand Down
Loading

0 comments on commit edc9630

Please sign in to comment.