From bf5e4d8cb345b6b289700c86546c0d8e2ca28717 Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Tue, 7 Mar 2017 22:38:16 +0100 Subject: [PATCH] Expose existing ctor Signed-off-by: Christian Kratky --- M2Mqtt/MqttClient.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/M2Mqtt/MqttClient.cs b/M2Mqtt/MqttClient.cs index 40745b5e..1f4b42e0 100644 --- a/M2Mqtt/MqttClient.cs +++ b/M2Mqtt/MqttClient.cs @@ -370,7 +370,6 @@ public MqttClient(string brokerHostName, int brokerPort, bool secure, X509Certif } #endif -#if BROKER /// /// Constructor /// @@ -390,6 +389,7 @@ public MqttClient(IMqttNetworkChannel channel) this.ClientId = null; this.CleanSession = true; + this.syncEndReceiving = new AutoResetEvent(false); this.keepAliveEvent = new AutoResetEvent(false); // queue for handling inflight messages (publishing and acknowledge) @@ -404,7 +404,6 @@ public MqttClient(IMqttNetworkChannel channel) // session this.session = null; } -#endif /// /// MqttClient initialization