Bug fixes

This commit is contained in:
1iveowl
2017-09-24 16:19:59 +02:00
parent 37a5dc7abe
commit 07fd509e74
5 changed files with 22 additions and 22 deletions
+1
View File
@@ -63,6 +63,7 @@ namespace MQTTnet.Core.Client
};
var response = await SendAndReceiveAsync<MqttConnAckPacket>(connectPacket).ConfigureAwait(false);
if (response.ConnectReturnCode != MqttConnectReturnCode.ConnectionAccepted)
{
throw new MqttConnectingFailedException(response.ConnectReturnCode);