X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FP10_Server.class.php;h=465fa3c00d97a830779a26981724ee3dda3f7b2d;hp=1b65ed95e79e2731ca448ee04dc14c289a5270ff;hb=e59e78694524537f0bd03782c777cc097b435e3d;hpb=695da943d0443abe58d4c7bd7d171ca0107d83bc diff --git a/Uplink/P10_Server.class.php b/Uplink/P10_Server.class.php index 1b65ed9..465fa3c 100644 --- a/Uplink/P10_Server.class.php +++ b/Uplink/P10_Server.class.php @@ -108,8 +108,10 @@ class P10_Server { self::$static_servers[$numeric] = $this; } - public function disconnectServer($linked_only = false) { + public function disconnectServer($eventHandler, $linked_only = false) { if(!$linked_only) { + if($eventHandler) + $eventHandler->event_squit($this); if($this->parent_server) { $this->parent_server->delServer($this); } @@ -117,7 +119,7 @@ class P10_Server { unset(self::$static_servers[$this->numeric]); } foreach($this->servers as $server) { - $server->disconnectServer(); + $server->disconnectServer($eventHandler); } }