Skip to content

Commit

Permalink
work around long stop time
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDog99 committed Apr 3, 2018
1 parent 46d03b8 commit ffd1a64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion macstorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ void macStorage_run()
while (!stop)
{
_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");
Expand Down

0 comments on commit ffd1a64

Please sign in to comment.