Skip to content

Commit

Permalink
Merge pull request #1112 from rakudo/rt130919
Browse files Browse the repository at this point in the history
Call done/quit on all taps - RT #130919
  • Loading branch information
jnthn committed Jul 13, 2017
2 parents f6025eb + 32b72cd commit 5196e0c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/core/Supply.pm
Expand Up @@ -204,18 +204,14 @@ my class Supply does Awaitable {
emit(value) unless $!finished;
},
done => -> {
unless $!finished {
$!finished = 1;
done();
self!cleanup($cleaned-up, $source-tap);
}
$!finished = 1;
done();
self!cleanup($cleaned-up, $source-tap);
},
quit => -> $ex {
unless $!finished {
$!finished = 1;
quit($ex);
self!cleanup($cleaned-up, $source-tap);
}
$!finished = 1;
quit($ex);
self!cleanup($cleaned-up, $source-tap);
});
Tap.new({ self!cleanup($cleaned-up, $source-tap) })
}
Expand Down

0 comments on commit 5196e0c

Please sign in to comment.