| @@ 199-210 (lines=12) @@ | ||
| 196 | * @override |
|
| 197 | * @inheritDoc |
|
| 198 | */ |
|
| 199 | public function resume() |
|
| 200 | { |
|
| 201 | if ($this->paused) |
|
| 202 | { |
|
| 203 | $this->paused = false; |
|
| 204 | ||
| 205 | if ($this->timer === null) |
|
| 206 | { |
|
| 207 | $this->timer = $this->loop->addPeriodicTimer($this->interval, [ $this, 'handleHeartbeat' ]); |
|
| 208 | } |
|
| 209 | } |
|
| 210 | } |
|
| 211 | ||
| 212 | /** |
|
| 213 | * @override |
|
| @@ 196-207 (lines=12) @@ | ||
| 193 | * @override |
|
| 194 | * @inheritDoc |
|
| 195 | */ |
|
| 196 | public function resume() |
|
| 197 | { |
|
| 198 | if ($this->paused) |
|
| 199 | { |
|
| 200 | $this->paused = false; |
|
| 201 | ||
| 202 | if ($this->timer === null) |
|
| 203 | { |
|
| 204 | $this->timer = $this->loop->addPeriodicTimer($this->interval, [ $this, 'handleHeartbeat' ]); |
|
| 205 | } |
|
| 206 | } |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * @override |
|