This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Compoment
/
MQTTnet
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Clear awaiters after an exception has occured.
release/3.x.x
Christian Kratky
6 years ago
parent
31b4eb7937
commit
1d455221e4
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs
+ 2
- 0
Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs
View File
@@ -15,6 +15,8 @@ namespace MQTTnet.Client
{
Task.Run(() => awaiter.Value.TrySetException(exception)); // Task.Run fixes a dead lock. Without this the client only receives one message.
}
_awaiters.Clear();
}
public void Dispatch(MqttBasePacket packet)
Write
Preview
Loading…
Cancel
Save