mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 19:13:11 +08:00
Fix packet bus cancellation.
This commit is contained in:
@@ -99,6 +99,8 @@ namespace MQTTnet.Internal
|
||||
// the worker back to the thread pool.
|
||||
await _semaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
|
||||
throw new InvalidOperationException("MqttPacketBus is broken.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user