From e911480587f4d86102a4a428b9f532c12ac23945 Mon Sep 17 00:00:00 2001 From: Luke Fitzgerald Date: Mon, 26 Jul 2010 11:21:11 -0700 Subject: [PATCH] Add timeout method to force call of idle to send ping --- plugins/Msn/msnmanager.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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. * -- 2.39.5