Commit e03e171c authored by Nick Craver's avatar Nick Craver

Call SetEnqueued before the write lock

The alternative here is outright removal due to the semantics change, but we would be breaking the IProfiledCommand interface, which has a non-nullable TimeSpan member for this.
parent 902c0132
......@@ -508,6 +508,7 @@ internal bool TryEnqueue(List<Message> messages, bool isSlave)
internal bool WriteMessageDirect(PhysicalConnection physical, Message next)
{
Trace("Writing: " + next);
next.SetEnqueued();
bool result;
lock (WriteLock)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment