Exit idleMonitor thread when it has finished

Could help debugging, see #470
This commit is contained in:
Ben RUBSON 2018-04-06 20:10:05 +02:00 committed by GitHub
parent dbfff030ce
commit 9ad4a7b89a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -850,7 +850,6 @@ static void *idleMonitor(void *_arg) {
while (ctx->running) {
unmountres = ctx->usageAndUnmount(timeoutCycles);
if (unmountres) {
pthread_cond_wait(&ctx->wakeupCond, &ctx->wakeupMutex);
break;
}