Fix presence notification on XMPP thread (now foreground, not background)

This commit is contained in:
Brion Vibber 2010-01-25 13:48:24 -08:00
parent ee4ca8f260
commit 1ab2483296

View File

@ -101,7 +101,7 @@ class XmppManager extends IoManager
$this->conn->addEventHandler('reconnect', 'handle_reconnect', $this); $this->conn->addEventHandler('reconnect', 'handle_reconnect', $this);
$this->conn->setReconnectTimeout(600); $this->conn->setReconnectTimeout(600);
jabber_send_presence("Send me a message to post a notice", 'available', null, 'available', -1); jabber_send_presence("Send me a message to post a notice", 'available', null, 'available', 100);
return !is_null($this->conn); return !is_null($this->conn);
} }
@ -233,7 +233,7 @@ class XmppManager extends IoManager
common_log(LOG_NOTICE, 'XMPP reconnected'); common_log(LOG_NOTICE, 'XMPP reconnected');
$this->conn->processUntil('session_start'); $this->conn->processUntil('session_start');
$this->conn->presence(null, 'available', null, 'available', -1); $this->conn->presence(null, 'available', null, 'available', 100);
} }