Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix spurious fails in Supply.interval tests
The cancel inside the CATCH block could also happen before the cancellation
value was set because of an exception.  And then bomb again, causing the test
failure.
  • Loading branch information
lizmat committed Dec 25, 2015
1 parent e360bd2 commit f2dd986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Supply.pm
Expand Up @@ -125,7 +125,7 @@ my class Supply {
{
state $i = 0;
emit($i++);
CATCH { $cancellation.cancel }
CATCH { $cancellation.cancel if $cancellation }
},
:every($!interval), :in($!delay)
);
Expand Down

0 comments on commit f2dd986

Please sign in to comment.