Skip to content

Commit

Permalink
Don't start a snapper if not running and :stop
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 5, 2017
1 parent 9344d35 commit d5fc6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Telemetry.pm6
Expand Up @@ -590,7 +590,7 @@ sub snapper($sleep = 0.1, :$stop, :$reset --> Nil) is export {
if $snapper-running {
$snapper-running = 0 if $stop;
}
else {
elsif !$stop {
$snapper-running = 1;
Thread.start(:app_lifetime, :name<Snapper>, {
snap;
Expand Down

0 comments on commit d5fc6cb

Please sign in to comment.