-
-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_pending_writes should be non-None when we have a document lock #344
Comments
May be a windows related issue |
Thanks, I'll try to set this up on my windows machine. |
That's odd, I'd expect this to schedule an event on the IO loop which should then be run on the thread:
What I think is happening is that for whatever reason |
When I try this locally (where it is working) |
Mine is always state00002 |
Not looking for the value of |
That's bizarre, I don't know how the error can occur if it is None. Here is the relevant code, if it is None it should go into the else branch but it seems to be going into the first branch: if comm or doc is state.curdoc:
self._update_model(events, msg, root, model, doc, comm)
if comm and 'embedded' not in root.tags:
push(doc, comm)
else:
cb = partial(self._update_model, events, msg, root, model, doc, comm)
doc.add_next_tick_callback(cb) |
What I can try to do is record the thread id, and if we're on the wrong thread it would force it to go down the else branch. |
Indeed if I force using the else part there is no problem |
The text was updated successfully, but these errors were encountered: