projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93fc218
)
fixup disconnected to use method
author
Evan Prodromou
<evan@boursin.controlezvous.ca>
Sat, 5 Jul 2008 20:24:12 +0000
(16:24 -0400)
committer
Evan Prodromou
<evan@boursin.controlezvous.ca>
Sat, 5 Jul 2008 20:24:12 +0000
(16:24 -0400)
darcs-hash:
20080705202412
-5a68a-
12ead3349425d70ec0a8349ebc3ce24b7a628dbc
.gz
xmppdaemon.php
patch
|
blob
|
history
diff --git
a/xmppdaemon.php
b/xmppdaemon.php
index 2fcd46eb84d0825cbcb5b1c08a6a4f2208d801f7..da5ffb9f4e03daf26a2018b57509359542ef2e7b 100755
(executable)
--- 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);