From: Roland Häder Date: Thu, 17 May 2012 21:48:54 +0000 (+0000) Subject: Opps ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4324a5443d9ebeb4397a763bb9db35769e4d65fd;p=hub.git Opps ... --- diff --git a/application/hub/main/commands/console/class_HubConsoleMainCommand.php b/application/hub/main/commands/console/class_HubConsoleMainCommand.php index 8c138e294..b3d9ef71f 100644 --- a/application/hub/main/commands/console/class_HubConsoleMainCommand.php +++ b/application/hub/main/commands/console/class_HubConsoleMainCommand.php @@ -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 diff --git a/application/hub/main/nodes/class_BaseHubNode.php b/application/hub/main/nodes/class_BaseHubNode.php index 8a091325e..14f9b8874 100644 --- a/application/hub/main/nodes/class_BaseHubNode.php +++ b/application/hub/main/nodes/class_BaseHubNode.php @@ -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;