Skip to content

Commit

Permalink
SAEA already in use error fix (akkadotnet#4301)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorFedchenko authored Mar 6, 2020
1 parent 717fb24 commit c726f11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/Akka/IO/TcpConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,12 @@ private Receive HandleWriteMessages(ConnectionInfo info)
AcknowledgeSent();

// If there is something to send - send it
DoWrite(info, GetAllowedPendingWrite());
var pendingWrite = GetAllowedPendingWrite();
if (pendingWrite.HasValue)
{
SetStatus(ConnectionStatus.Sending);
DoWrite(info, pendingWrite);
}

// If message is fully sent, notify sender who sent ResumeWriting command
if (!IsWritePending && _interestedInResume != null)
Expand Down

0 comments on commit c726f11

Please sign in to comment.