src/Pool.php
protected function checkAlive(\CharlotteDunois\Phoebe\Worker $worker) {
        if(!$worker->isRunning()) {
            $this->emit('debug', 'Picked worker '.$worker->id.' is not running, spawning new one...');
            
            $this->removeWorker($worker);
            return $this->spawnWorker();
        }
        
        return $worker;
    }
protected function checkAlive(\CharlotteDunois\Phoebe\Worker $worker) {
        if(!$worker->isRunning()) {
            $this->emit('debug', 'Picked worker '.$worker->id.' is not running, spawning new one...');
            
            $this->removeWorker($worker);
            return $this->spawnWorker();
        }
        
        return $worker;
    }
Checks whether the worker is alive, or spawns a new one.
@param \CharlotteDunois\Phoebe\Worker  $worker
@return \CharlotteDunois\Phoebe\Worker