Subj : src/sbbs3/mqtt.c To : Git commit to main/sbbs/master From : Rob Swindell (on Windows 11) Date : Wed Dec 13 2023 19:11:22 https://gitlab.synchro.net/main/sbbs/-/commit/6abee6374eb0967feb398643 Modified Files: src/sbbs3/mqtt.c Log Message: Fix crash after failing to connect to MQTT broker We need to call mqtt_shutdown() instead of mqtt_close() to have the mosquitto (loop) thread stopped. Upon connect failure, call the mqtt_shutdown() *before* calling lprintf->lputs, which would eventually try to MQTT-publish the log message. The call to mqtt_connect() can block for a while, so raise the log severity of the "connecting to broker" message from DEBUG to INFO. Otherwise, a bad MQTT broker address or port would make the servers just appear to hang during initialization, for no reason. --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .