summaryrefslogtreecommitdiff
path: root/xmppdaemon.php
diff options
context:
space:
mode:
Diffstat (limited to 'xmppdaemon.php')
-rwxr-xr-xxmppdaemon.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmppdaemon.php b/xmppdaemon.php
index 2fcd46eb8..da5ffb9f4 100755
--- a/xmppdaemon.php
+++ b/xmppdaemon.php
@@ -54,6 +54,7 @@ class XMPPDaemon {
}
function connect() {
+
$connect_to = ($this->host) ? $this->host : $this->server;
$this->log(LOG_INFO, "Connecting to $connect_to on port $this->port");
@@ -63,6 +64,7 @@ class XMPPDaemon {
if (!$this->conn) {
return false;
}
+
return !$this->conn->isDisconnected();
}
@@ -71,7 +73,7 @@ class XMPPDaemon {
static $parts = array('message', 'presence',
'end_stream', 'session_start');
- while(!$this->conn->disconnected) {
+ while(!$this->conn->isDisconnected()) {
$payloads = $this->conn->processUntil($parts, 10);