From: Luke Fitzgerald Date: Mon, 26 Jul 2010 18:21:11 +0000 (-0700) Subject: Add timeout method to force call of idle to send ping X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e911480587f4d86102a4a428b9f532c12ac23945;p=quix0rs-gnu-social.git Add timeout method to force call of idle to send ping --- diff --git a/plugins/Msn/msnmanager.php b/plugins/Msn/msnmanager.php index daafced3b4..b62bbd7ad8 100644 --- a/plugins/Msn/msnmanager.php +++ b/plugins/Msn/msnmanager.php @@ -76,6 +76,14 @@ class MsnManager extends ImManager { } } + /** + * Message pump is triggered on socket input, so we only need an idle() + * call often enough to trigger our outgoing pings. + */ + function timeout() { + return $this->pingInterval; + } + /** * Process MSN events that have come in over the wire. *