From: Roland Haeder Date: Sat, 22 Aug 2015 09:44:49 +0000 (+0200) Subject: setNodeInstance is no longer available through BaseListener as BaseListener is now... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=219db1384730913a7327cc69e0ae5e8a3581283b;p=hub.git setNodeInstance is no longer available through BaseListener as BaseListener is now in core. Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/handler/message-types/dht/class_NodeMessageDhtBootstrapHandler.php b/application/hub/main/handler/message-types/dht/class_NodeMessageDhtBootstrapHandler.php index 35b609e4c..8e16c876f 100644 --- a/application/hub/main/handler/message-types/dht/class_NodeMessageDhtBootstrapHandler.php +++ b/application/hub/main/handler/message-types/dht/class_NodeMessageDhtBootstrapHandler.php @@ -76,6 +76,9 @@ class NodeMessageDhtBootstrapHandler extends BaseMessageHandler implements Handl // Get node instance $nodeInstance = NodeObjectFactory::createNodeInstance(); + // Debug message + self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ':] Setting node ...'); + // ... and set it here $handlerInstance->setNodeInstance($nodeInstance); diff --git a/application/hub/main/listener/tcp/class_TcpListener.php b/application/hub/main/listener/tcp/class_TcpListener.php index 7ef6a1f05..d3fbcf35c 100644 --- a/application/hub/main/listener/tcp/class_TcpListener.php +++ b/application/hub/main/listener/tcp/class_TcpListener.php @@ -45,9 +45,6 @@ class TcpListener extends BaseListener implements Listenable { // Get new instance $listenerInstance = new TcpListener(); - // Set the application instance - $listenerInstance->setNodeInstance($nodeInstance); - // Return the prepared instance return $listenerInstance; } diff --git a/application/hub/main/listener/udp/class_UdpListener.php b/application/hub/main/listener/udp/class_UdpListener.php index a9c9d51de..0eed46a90 100644 --- a/application/hub/main/listener/udp/class_UdpListener.php +++ b/application/hub/main/listener/udp/class_UdpListener.php @@ -45,9 +45,6 @@ class UdpListener extends BaseListener implements Listenable { // Get new instance $listenerInstance = new UdpListener(); - // Set the application instance - $listenerInstance->setNodeInstance($nodeInstance); - // Return the prepared instance return $listenerInstance; } diff --git a/application/hub/main/pools/listener/class_DefaultListenerPool.php b/application/hub/main/pools/listener/class_DefaultListenerPool.php index 82e5ced4a..3409bd484 100644 --- a/application/hub/main/pools/listener/class_DefaultListenerPool.php +++ b/application/hub/main/pools/listener/class_DefaultListenerPool.php @@ -42,6 +42,9 @@ class DefaultListenerPool extends BasePool implements PoolableListener { // Get new instance $listenerInstance = new DefaultListenerPool(); + // Debug message + self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ':] Setting node ...'); + // Set the application instance $listenerInstance->setNodeInstance($nodeInstance);