diff -r 862de87f9f89 -r 727fe541a48d thermferm/thermferm.c --- a/thermferm/thermferm.c Sat Apr 29 17:07:36 2017 +0200 +++ b/thermferm/thermferm.c Sat Apr 29 17:47:00 2017 +0200 @@ -1994,6 +1994,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");