Provide the full ACK on a connection failure

There are some systems that return information on a failed exception and thus the client wants access to the full set of ACK information.  Specifically the user properties.
This commit is contained in:
Jim Schaad
2019-12-31 14:44:25 -08:00
parent d4088420cf
commit 9c378fb088
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ namespace MQTTnet.Client
if (result.ResultCode != MqttClientConnectResultCode.Success)
{
throw new MqttConnectingFailedException(result.ResultCode);
throw new MqttConnectingFailedException(result);
}
_logger.Verbose("Authenticated MQTT connection with server established.");