src/ProcessManager.php
protected function closeSlave($slave)
    {
        $slave->close();
        $this->slaves->remove($slave);

        if (!empty($slave->getConnection())) {
            /** @var ConnectionInterface */
            $connection = $slave->getConnection();
            $connection->removeAllListeners('close');
            $connection->close();
        }
    }
protected function closeSlave($slave)
    {
        $slave->close();
        $this->slaves->remove($slave);

        if (!empty($slave->getConnection())) {
            /** @var ConnectionInterface */
            $connection = $slave->getConnection();
            $connection->removeAllListeners('close');
            $connection->close();
        }
    }
protected function closeSlave ( $ slave ) { $ slave -> close ( ) ; $ this -> slaves -> remove ( $ slave ) ; if ( ! empty ( $ slave -> getConnection ( ) ) ) { /** @var ConnectionInterface */ $ connection = $ slave -> getConnection ( ) ; $ connection -> removeAllListeners ( 'close' ) ; $ connection -> close ( ) ; } }
Close a slave

@param Slave $slave

@return void
Close a slave