From 4324a5443d9ebeb4397a763bb9db35769e4d65fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 17 May 2012 21:48:54 +0000 Subject: [PATCH] Opps ... --- .../hub/main/commands/console/class_HubConsoleMainCommand.php | 2 +- application/hub/main/nodes/class_BaseHubNode.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5