mosquitto_threaded_set not available in 1.3.2 yet

This commit is contained in:
john30
2018-12-26 16:38:15 +01:00
parent 95f0c7e804
commit b5ade5734c
+1 -3
View File
@@ -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<void*>(&g_version)),
"opts_set protocol version");
#endif