]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add timeout method to force call of idle to send ping
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Mon, 26 Jul 2010 18:21:11 +0000 (11:21 -0700)
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Mon, 26 Jul 2010 18:21:11 +0000 (11:21 -0700)
plugins/Msn/msnmanager.php

index daafced3b4033af9613f5ab2525191121d5c2174..b62bbd7ad8bb73bfdb95ac03a21087b4c8593f23 100644 (file)
@@ -76,6 +76,14 @@ class MsnManager extends ImManager {
         }\r
     }\r
 \r
+    /**\r
+     * Message pump is triggered on socket input, so we only need an idle()\r
+     * call often enough to trigger our outgoing pings.\r
+     */\r
+    function timeout() {\r
+        return $this->pingInterval;\r
+    }\r
+\r
     /**\r
      * Process MSN events that have come in over the wire.\r
      *\r