Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Wolverine/Configuration/EndpointCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private ISendingAgent buildSendingAgent(Uri uri, Action<Endpoint>? configureNewE
public async Task DrainAsync()
{
// Drain the listeners
foreach (var listener in ActiveListeners())
foreach (var listener in ActiveListeners().ToArray())
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion src/Wolverine/Transports/ListeningAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public async ValueTask PauseAsync(TimeSpan pauseTime)
_restarter = new Restarter(this, pauseTime);
}

private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(0, 1);
private readonly SemaphoreSlim _semaphore = new(1, 1);

public async ValueTask MarkAsTooBusyAndStopReceivingAsync()
{
Expand Down
Loading