Skip to content

Commit 071209f

Browse files
committed
Also apply 0 interval fix to deprecated ExtLibevLoop periodic timer creation
1 parent 0697b65 commit 071209f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExtLibevLoop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function addPeriodicTimer($interval, $callback)
132132
\call_user_func($timer->getCallback(), $timer);
133133
};
134134

135-
$event = new TimerEvent($callback, $interval, $interval);
135+
$event = new TimerEvent($callback, $timer->getInterval(), $timer->getInterval());
136136
$this->timerEvents->attach($timer, $event);
137137
$this->loop->add($event);
138138

0 commit comments

Comments
 (0)