mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Refactoring.
This commit is contained in:
@@ -8,5 +8,13 @@ namespace MQTTnet.Internal
|
||||
{
|
||||
throw new MqttCommunicationClosedGracefullyException();
|
||||
}
|
||||
|
||||
public static void ThrowIfGracefulSocketClose(int readBytesCount)
|
||||
{
|
||||
if (readBytesCount <= 0)
|
||||
{
|
||||
throw new MqttCommunicationClosedGracefullyException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user