diff options
Diffstat (limited to 'scripts/publicqueuehandler.php')
-rwxr-xr-x | scripts/publicqueuehandler.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/scripts/publicqueuehandler.php b/scripts/publicqueuehandler.php index 9a7b6df5f..555298f6a 100755 --- a/scripts/publicqueuehandler.php +++ b/scripts/publicqueuehandler.php @@ -54,16 +54,8 @@ class PublicQueueHandler extends QueueHandler { return jabber_public_notice($notice); } - function idle() { - $this->log(LOG_DEBUG, 'Checking the incoming message queue.'); - # Process the queue for a second - if ($this->conn->readyToProcess()) { - $this->log(LOG_DEBUG, 'Something in the incoming message queue; processing it.'); - $this->conn->processTime(1); - $this->log(LOG_DEBUG, 'Done processing incoming message queue.'); - } else { - $this->log(LOG_DEBUG, 'Nothing in the incoming message queue; skipping it.'); - } + function idle($timeout=0) { + $this->conn->processTime($timeout); } function forward_message(&$pl) { |