event is triggered but something is blocking

This commit is contained in:
JanEggers
2018-07-19 21:13:27 +02:00
parent 21048b51ae
commit b55f5ff298
6 changed files with 45 additions and 24 deletions
@@ -249,16 +249,6 @@ namespace MQTTnet.Server
}
finally
{
try
{
await clientAdapter.DisconnectAsync(_options.DefaultCommunicationTimeout, CancellationToken.None).ConfigureAwait(false);
clientAdapter.Dispose();
}
catch (Exception exception)
{
_logger.Error(exception, exception.Message);
}
if (!_options.EnablePersistentSessions)
{
DeleteSession(clientId);