mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-25 07:41:32 +08:00
Refactoring
This commit is contained in:
@@ -83,7 +83,7 @@ namespace MQTTnet.Client
|
|||||||
{
|
{
|
||||||
_packetByResponseType[responseType] = tcs;
|
_packetByResponseType[responseType] = tcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
return tcs;
|
return tcs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace MQTTnet.Internal
|
|||||||
|
|
||||||
if (task.IsFaulted)
|
if (task.IsFaulted)
|
||||||
{
|
{
|
||||||
throw new MqttCommunicationException(task.Exception.GetBaseException());
|
throw new MqttCommunicationException(task.Exception?.GetBaseException());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Net;
|
|
||||||
|
|
||||||
namespace MQTTnet.Server
|
namespace MQTTnet.Server
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user