diff options
-rwxr-xr-x | scripts/xmppdaemon.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 2b21efa1e..b013a34c9 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) { |