]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/message-types/self-connect/class_NodeMessageSelfConnectHandler.php
Introduced NodeObjectFactory to encapsulate (and ease) a lot calls.
[hub.git] / application / hub / main / handler / message-types / self-connect / class_NodeMessageSelfConnectHandler.php
index 635a77e4b0147e0736e6cc04a0d5d21e89093122..76e3f902aef3133bddb0799a1c4ec1c5bdaad766 100644 (file)
@@ -62,7 +62,7 @@ class NodeMessageSelfConnectHandler extends BaseMessageHandler implements Handle
                        self::createDebugInstance(__CLASS__)->debugOutput('SELF-CONNECT[' . __METHOD__ . ':' . __LINE__ . ']: Have connected to myself, both node and session id are equal!');
 
                        // Get node instance ...
-                       $nodeInstance = Registry::getRegistry()->getInstance('node');
+                       $nodeInstance = NodeObjectFactory::createNodeInstance();
 
                        // ... and change state
                        $nodeInstance->getStateInstance()->nodeHasSelfConnected();