Skip to content

Commit

Permalink
Flush messages more often
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySwimmer committed Oct 12, 2023
1 parent 713c92f commit 850b709
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ public override void Open()
Writer.WriteInt(-1);
Writer.WriteInt(1);
Writer.WriteBytes(packet);
Writer.GetStream().Flush();
}
finally
{
Expand Down Expand Up @@ -871,6 +872,7 @@ public override void Close(string reason, params string[] args)
Writer.WriteInt(-1);
Writer.WriteInt(0);
Writer.WriteBytes(packet);
Writer.GetStream().Flush();
}
finally
{
Expand Down

0 comments on commit 850b709

Please sign in to comment.