]> git.mxchange.org Git - hub.git/commitdiff
Opps ...
authorRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 21:48:54 +0000 (21:48 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 21:48:54 +0000 (21:48 +0000)
application/hub/main/commands/console/class_HubConsoleMainCommand.php
application/hub/main/nodes/class_BaseHubNode.php

index 8c138e2942211cdc5f25b221fab2a3d6c8cf5787..b3d9ef71fd8ffe5b1aef317dc419de0ab2823d68 100644 (file)
@@ -96,7 +96,7 @@ class HubConsoleMainCommand extends BaseCommand implements Commandable {
                 * so the whole application runs on nice speed. This while-loop goes
                 * until the hub is no longer active or all tasks are killed.
                 */
-               while (($nodeInstance->isNodeActive()()) && ($handlerInstance->hasTasksLeft())) {
+               while (($nodeInstance->isNodeActive()) && ($handlerInstance->hasTasksLeft())) {
                        // Handle all tasks here
                        $handlerInstance->handleTasks();
                } // END - while
index 8a091325e91c7ab85a4ef569f78462620f3d1279..14f9b887437ba9feeb4ae7cc55fc0e86def5ad14 100644 (file)
@@ -459,7 +459,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
        public function activateNode (Requestable $requestInstance, Responseable $responseInstance) {
                // Checks whether a listener is still active and shuts it down if one
                // is still listening.
-               if (($this->determineIfListenerIsActive()) && ($this->isNodeActive()())) {
+               if (($this->determineIfListenerIsActive()) && ($this->isNodeActive())) {
                        // Shutdown them down before they can hurt anything
                        $this->shutdownListenerPool();
                } // END - if
@@ -610,7 +610,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
         */
        public final function isAcceptingAnnouncements () {
                // Check it (this node must be active and not shutdown!)
-               $acceptsAnnouncements = (($this->acceptsAnnouncements === true) && ($this->isNodeActive()());
+               $acceptsAnnouncements = (($this->acceptsAnnouncements === true) && ($this->isNodeActive());
 
                // Return it
                return $acceptsAnnouncements;