Refactoring.

This commit is contained in:
Christian Kratky
2018-07-07 21:03:31 +02:00
parent d494c2104b
commit 9efee7af21
3 changed files with 18 additions and 16 deletions
@@ -8,5 +8,13 @@ namespace MQTTnet.Internal
{
throw new MqttCommunicationClosedGracefullyException();
}
public static void ThrowIfGracefulSocketClose(int readBytesCount)
{
if (readBytesCount <= 0)
{
throw new MqttCommunicationClosedGracefullyException();
}
}
}
}