3
0
mirror of https://github.com/FreifunkFranken/macnocker.git synced 2023-07-24 21:31:47 +02:00

work around long stop time

This commit is contained in:
Tim Niemeyer 2018-04-03 19:37:44 +02:00
parent 46d03b86a6
commit ffd1a64515

View File

@ -120,7 +120,13 @@ void macStorage_run()
while (!stop) while (!stop)
{ {
_checkTimeout(); _checkTimeout();
usleep(5 * 1000 * 1000); for (size_t i=0; i<5; i++)
{
if (!stop)
{
usleep(1 * 1000 * 1000);
}
}
} }
log_debug("[m] Storage closed\n"); log_debug("[m] Storage closed\n");