mirror of
https://github.com/danog/parallel.git
synced 2024-11-27 04:44:56 +01:00
Fix thread reporting being open after kill
This commit is contained in:
parent
172c64c583
commit
c0ed3e3c05
@ -90,7 +90,7 @@ class Thread implements ContextInterface, SynchronizableInterface
|
||||
*/
|
||||
public function isRunning()
|
||||
{
|
||||
return $this->thread->isRunning() && !$this->thread->isTerminated();
|
||||
return $this->thread->isRunning() && $this->channel->isOpen();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user