summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jobs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jobs.c b/src/jobs.c
index 380845d7..9680699d 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -355,6 +355,9 @@ static int evloop_get()
if (evloop.holder)
return evloop.holder == ct;
+ if (!evloop.sdev)
+ return 0;
+
ct->nholder = NULL;
evloop.holder = ct;
return 1;