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 99c3d88 commit 0068951Copy full SHA for 0068951
1 file changed
Process.php
@@ -110,13 +110,11 @@ public function start(LoopInterface $loop, $interval = 0.1)
110
stream_set_blocking($pipe, 0);
111
}
112
113
- $self = $this;
114
-
115
- $loop->addPeriodicTimer($interval, function(Timer $timer) use ($self) {
116
- if (!$self->isRunning()) {
117
- $self->close();
+ $loop->addPeriodicTimer($interval, function (Timer $timer) {
+ if (!$this->isRunning()) {
+ $this->close();
118
$timer->cancel();
119
- $self->emit('exit', array($self->getExitCode(), $self->getTermSignal()));
+ $this->emit('exit', array($this->getExitCode(), $this->getTermSignal()));
120
121
});
122
0 commit comments