Skip to content

Commit

Permalink
修正 clearAll 未重置 timerMap 的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ar026 authored Mar 4, 2019
1 parent ad3deff commit 9ebf6ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function clearAll(): bool
swoole_timer_clear($id);
}
$this->timerList = [];
$this->timerMap = [];
return true;
}

Expand Down

0 comments on commit 9ebf6ca

Please sign in to comment.