From b5ade5734c58b2718c76436a9115514f14817060 Mon Sep 17 00:00:00 2001 From: john30 Date: Wed, 26 Dec 2018 16:38:15 +0100 Subject: [PATCH] mosquitto_threaded_set not available in 1.3.2 yet --- src/ebusd/mqtthandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index 489536c7..451c0911 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -468,10 +468,8 @@ MqttHandler::MqttHandler(UserInfo* userInfo, BusHandler* busHandler, MessageMap* } } if (m_mosquitto) { -#if (LIBMOSQUITTO_VERSION_NUMBER >= 1003002) - check(mosquitto_threaded_set(m_mosquitto, true), "threaded_set"); -#endif #if (LIBMOSQUITTO_VERSION_NUMBER >= 1004001) + check(mosquitto_threaded_set(m_mosquitto, true), "threaded_set"); check(mosquitto_opts_set(m_mosquitto, MOSQ_OPT_PROTOCOL_VERSION, reinterpret_cast(&g_version)), "opts_set protocol version"); #endif