/** * Close the process * @return void */ public function close() { parent::close(); $this->closeWrite(); if (is_resource($this->pd)) { proc_close($this->pd); } }
/** * Called when connection finishes * @return void */ public function onFinish() { if (!$this->connected) { if ($this->onConnected) { $this->onConnected->executeAll($this); $this->onConnected = null; } } parent::onFinish(); }