mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-22 04:43:04 +08:00
event is triggered but something is blocking
This commit is contained in:
@@ -222,8 +222,11 @@ namespace MQTTnet.Client
|
||||
|
||||
try
|
||||
{
|
||||
await WaitForTaskAsync(_packetReceiverTask, sender).ConfigureAwait(false);
|
||||
await WaitForTaskAsync(_keepAliveMessageSenderTask, sender).ConfigureAwait(false);
|
||||
if (!(exception is MqttCommunicationClosedGracefullyException))
|
||||
{
|
||||
await WaitForTaskAsync(_packetReceiverTask, sender).ConfigureAwait(false);
|
||||
await WaitForTaskAsync(_keepAliveMessageSenderTask, sender).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (_adapter != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user