Commit d7da14d6 authored by Arnim Läuger's avatar Arnim Läuger Committed by Marcel Stör
Browse files

MQTT: print deprecation message regardless of autoreconnect value (#2668)

parent 27e9e6c0
......@@ -1328,10 +1328,8 @@ static int mqtt_socket_connect( lua_State* L )
if ( (stack<=top) && lua_isnumber(L, stack) )
{
platform_print_deprecation_note("autoreconnect is deprecated", "in the next version");
auto_reconnect = lua_tointeger(L, stack);
if ( auto_reconnect == RECONNECT_POSSIBLE ) {
platform_print_deprecation_note("autoreconnect == 1 is deprecated", "in the next version");
}
stack++;
if ( auto_reconnect != RECONNECT_OFF && auto_reconnect != RECONNECT_POSSIBLE ){
auto_reconnect = RECONNECT_OFF; // default to 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment