Skip to content

Commit

Permalink
Remove signal from loop before stopping the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Oct 30, 2017
1 parent 3678c63 commit 6e21a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/AbstractLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ public function testSignalsKeepTheLoopRunning()
$function = function () {};
$this->loop->addSignal(SIGUSR1, $function);
$this->loop->addTimer(1.5, function () use ($function) {
$this->loop->stop();
$this->loop->removeSignal(SIGUSR1, $function);
$this->loop->stop();
});

$this->assertRunSlowerThan(1.4);
Expand Down

0 comments on commit 6e21a83

Please sign in to comment.