Skip to content

Commit

Permalink
[#553] Sending an AMQP message from an ASP.NET 4.7.2 page request con…
Browse files Browse the repository at this point in the history
…text
  • Loading branch information
xinchen10 committed Dec 9, 2022
1 parent bfaa9be commit 2041037
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Net/TransportWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ void ITransport.Send(ByteBuffer buffer)
this.writing = true;
}

this.WriteAsync();
// Kick off the write loop
var _ = this.WriteAsync();
}

int ITransport.Receive(byte[] buffer, int offset, int count)
Expand All @@ -111,7 +112,7 @@ void ITransport.Close()
}
}

async void WriteAsync()
async Task WriteAsync()
{
const int maxBatchSize = 128 * 1024;

Expand Down

0 comments on commit 2041037

Please sign in to comment.