Refactoring

This commit is contained in:
Christian
2018-01-22 21:11:35 +01:00
parent 002e4b8d69
commit 40c33ac639
3 changed files with 2 additions and 3 deletions
@@ -83,7 +83,7 @@ namespace MQTTnet.Client
{
_packetByResponseType[responseType] = tcs;
}
return tcs;
}
@@ -30,7 +30,7 @@ namespace MQTTnet.Internal
if (task.IsFaulted)
{
throw new MqttCommunicationException(task.Exception.GetBaseException());
throw new MqttCommunicationException(task.Exception?.GetBaseException());
}
}
finally
@@ -1,5 +1,4 @@
using System;
using System.Net;
namespace MQTTnet.Server
{