complete-run: Bugfix: return condvar when $dont_start is true
This commit is contained in:
parent
f0cc13f356
commit
8b887e8447
|
@ -165,11 +165,14 @@ sub take_job {
|
|||
}
|
||||
|
||||
my $kill_i3 = sub {
|
||||
# Don’t bother killing i3 when we haven’t started it
|
||||
return if $dont_start;
|
||||
|
||||
my $kill_cv = AnyEvent->condvar;
|
||||
|
||||
# Don’t bother killing i3 when we haven’t started it
|
||||
if ($dont_start) {
|
||||
$kill_cv->send();
|
||||
return $kill_cv;
|
||||
}
|
||||
|
||||
# When measuring code coverage, try to exit i3 cleanly (otherwise, .gcda
|
||||
# files are not written) and fallback to killing it
|
||||
if ($coverage_testing || $valgrind) {
|
||||
|
|
Loading…
Reference in New Issue