Keep log open until we are ready to quit.

pull/1203/head
Roger A. Light 7 years ago
parent 8024a30d1d
commit 94450eb8bc

@ -367,7 +367,6 @@ int main(int argc, char *argv[])
rc = mosquitto_main_loop(&int_db, listensock, listensock_count); rc = mosquitto_main_loop(&int_db, listensock, listensock_count);
log__printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s terminating", VERSION); log__printf(NULL, MOSQ_LOG_INFO, "mosquitto version %s terminating", VERSION);
log__close(&config);
#ifdef WITH_WEBSOCKETS #ifdef WITH_WEBSOCKETS
for(i=0; i<int_db.config->listener_count; i++){ for(i=0; i<int_db.config->listener_count; i++){
@ -436,6 +435,7 @@ int main(int argc, char *argv[])
remove(config.pid_file); remove(config.pid_file);
} }
log__close(&config);
config__cleanup(int_db.config); config__cleanup(int_db.config);
net__broker_cleanup(); net__broker_cleanup();

Loading…
Cancel
Save