public static function remove($id) { if (isset(self::$list[$id])) { self::$list[$id]->free(); } }
/** * @TODO DESCR */ public function onFinish() { if ($this->attachedServer) { $this->attachedServer->attachedClients->detach($this); } Timer::remove($this->keepaliveTimer); parent::onFinish(); }