We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ad5fd commit 2aa13a9Copy full SHA for 2aa13a9
LibEvLoop.php
@@ -12,7 +12,6 @@ class LibEvLoop implements LoopInterface
12
private $readEvents = array();
13
private $writeEvents = array();
14
private $timers = array();
15
- private $suspended = false;
16
17
public function __construct()
18
{
@@ -138,17 +137,11 @@ public function tick()
138
137
139
public function run()
140
141
- if ($this->suspended) {
142
- $this->suspended = false;
143
- $this->loop->resume();
144
- } else {
145
- $this->loop->run();
146
- }
+ $this->loop->run();
147
}
148
149
public function stop()
150
151
- $this->loop->suspend();
152
- $this->suspended = true;
+ $this->loop->breakLoop();
153
154
0 commit comments