diff -r cdcd07bbee30 -r 80344f433a78 thermferm/thermferm.c --- a/thermferm/thermferm.c Mon May 08 16:26:02 2017 +0200 +++ b/thermferm/thermferm.c Mon May 08 16:32:43 2017 +0200 @@ -1920,6 +1920,7 @@ syslog(LOG_NOTICE, "Unit `%s' stopped in mode %s", unit->name, UNITMODE[unit->mode]); } + usleep(100000); mqtt_disconnect(); syslog(LOG_NOTICE, "Out of loop");