onFinish() public method

Called when connection finishes
public onFinish ( ) : void
return void
Beispiel #1
0
 /**
  * @TODO DESCR
  */
 public function onFinish()
 {
     if ($this->attachedServer) {
         $this->attachedServer->attachedClients->detach($this);
     }
     Timer::remove($this->keepaliveTimer);
     parent::onFinish();
 }
 /**
  * Called when connection finishes
  * @return void
  */
 public function onFinish()
 {
     $this->onResponse->executeAll($this, false);
     $this->onResponse = null;
     if ($this->pool && $this->url !== null) {
         $this->pool->detachConnFromUrl($this, $this->url);
     }
     parent::onFinish();
 }