Fix packet bus cancellation.

This commit is contained in:
Christian
2021-10-26 22:12:34 +02:00
parent 905306c312
commit 7297336786
+2
View File
@@ -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.");
}