Fix null ref exception in low level client.

This commit is contained in:
Christian Kratky
2020-08-05 20:49:11 +02:00
parent 4f51a238b3
commit 6b6627f823
3 changed files with 20 additions and 6 deletions
@@ -48,7 +48,7 @@ namespace MQTTnet.LowLevelClient
}
catch (Exception)
{
_adapter.Dispose();
_adapter?.Dispose();
throw;
}