1
0
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:
Aaron Piotrowski 2015-09-01 21:10:58 -05:00
parent 172c64c583
commit c0ed3e3c05

View File

@ -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();
}
/**