mirror of
https://github.com/danog/process.git
synced 2024-11-26 20:24:43 +01:00
Only reference watcher if running
This commit is contained in:
parent
a69d56bb1b
commit
9c8fe73b2c
@ -238,7 +238,7 @@ class Process {
|
||||
throw new StatusError("The process is not running");
|
||||
}
|
||||
|
||||
if ($this->watcher !== null) {
|
||||
if ($this->watcher !== null && $this->running) {
|
||||
Loop::reference($this->watcher);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user