mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
mqtt: mosquitto loop returns immediately
This commit is contained in:
parent
e6cc58e4c0
commit
0d113ab715
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ static void * mosquitto_loop_thread(void *ctx)
|
|||
else
|
||||
warning("MQTT: successfully reconnected to broker for node %s: %s", node_name(node), mosquitto_strerror(ret));
|
||||
|
||||
ret = mosquitto_loop(m->client, -1, 1);
|
||||
ret = mosquitto_loop(m->client, 0, 1);
|
||||
if (ret != MOSQ_ERR_SUCCESS)
|
||||
warning("MQTT: persisting connection error for node %s: %s", node_name(node), mosquitto_strerror(ret));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue