Deconfigure thread mode when the loop thread ends.
Threaded mode is deconfigured when the mosquitto_loop_start() thread ends, which allows mosquitto_loop_start() to be called again. Closes #2242. Thanks to Timo Lange.
This commit is contained in:
parent
9526b4cf23
commit
0d1837ebe3
@ -37,6 +37,8 @@ Client library:
|
|||||||
connect successfully without verifying certificates, because they were not
|
connect successfully without verifying certificates, because they were not
|
||||||
configured.
|
configured.
|
||||||
- Disable TLS v1.3 when using TLS-PSK, because it isn't correctly configured.
|
- Disable TLS v1.3 when using TLS-PSK, because it isn't correctly configured.
|
||||||
|
- Threaded mode is deconfigured when the mosquitto_loop_start() thread ends,
|
||||||
|
which allows mosquitto_loop_start() to be called again. Closes #2242.
|
||||||
|
|
||||||
Clients:
|
Clients:
|
||||||
- mosquitto_sub and mosquitto_rr now open stdout in binary mode on Windows
|
- mosquitto_sub and mosquitto_rr now open stdout in binary mode on Windows
|
||||||
|
@ -129,6 +129,9 @@ void *mosquitto__thread_main(void *obj)
|
|||||||
/* Sleep for our keepalive value. publish() etc. will wake us up. */
|
/* Sleep for our keepalive value. publish() etc. will wake us up. */
|
||||||
mosquitto_loop_forever(mosq, mosq->keepalive*1000, 1);
|
mosquitto_loop_forever(mosq, mosq->keepalive*1000, 1);
|
||||||
}
|
}
|
||||||
|
if(mosq->threaded == mosq_ts_self){
|
||||||
|
mosq->threaded = mosq_ts_none;
|
||||||
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user