diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 2b21efa1e6..b013a34c9d 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -71,15 +71,10 @@ class XMPPDaemon { } function handle() { - $this->conn->addEventHandler('message', 'handle_message', $this); $this->conn->addEventHandler('presence', 'handle_presence', $this); - while(!$this->conn->isDisconnected()) { - $this->conn->processTime(5); - $this->broadcast_queue(); - $this->confirmation_queue(); - } + $this->conn->process(); } function get_user($from) {