projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented EventHandler
[PHP-P10.git]
/
Uplink
/
P10_Server.class.php
diff --git
a/Uplink/P10_Server.class.php
b/Uplink/P10_Server.class.php
index 1b65ed95e79e2731ca448ee04dc14c289a5270ff..465fa3c00d97a830779a26981724ee3dda3f7b2d 100644
(file)
--- a/
Uplink/P10_Server.class.php
+++ b/
Uplink/P10_Server.class.php
@@
-108,8
+108,10
@@
class P10_Server {
self::$static_servers[$numeric] = $this;
}
self::$static_servers[$numeric] = $this;
}
- public function disconnectServer($linked_only = false) {
+ public function disconnectServer($
eventHandler, $
linked_only = false) {
if(!$linked_only) {
if(!$linked_only) {
+ if($eventHandler)
+ $eventHandler->event_squit($this);
if($this->parent_server) {
$this->parent_server->delServer($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) {
unset(self::$static_servers[$this->numeric]);
}
foreach($this->servers as $server) {
- $server->disconnectServer();
+ $server->disconnectServer(
$eventHandler
);
}
}
}
}