The mix of async code (`ContinueWith()` on `SendNextMessageFromQueue()`) and sync code will cause a race condition, we should only change `_writeInProgress` to `0` when we finish dequeueing all items. The easiest solution would be to move this set statement to the `SendNextMessageFromQueue()` method.
[ Full content available at: https://github.com/apache/tinkerpop/pull/1016 ] This message was relayed via gitbox.apache.org for [email protected]
