complete-run: Bugfix: return condvar when $dont_start is true

This commit is contained in:
Michael Stapelberg 2011-11-07 22:38:06 +00:00
parent f0cc13f356
commit 8b887e8447
1 changed files with 6 additions and 3 deletions

View File

@ -165,11 +165,14 @@ sub take_job {
}
my $kill_i3 = sub {
# Dont bother killing i3 when we havent started it
return if $dont_start;
my $kill_cv = AnyEvent->condvar;
# Dont bother killing i3 when we havent 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) {