]> git.cworth.org Git - loudgame/commitdiff
Add a call to lm_connection_set_keep_alive_rate
authorCarl Worth <cworth@cworth.org>
Sat, 19 Jan 2008 17:02:31 +0000 (09:02 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 19 Jan 2008 17:02:31 +0000 (09:02 -0800)
Without this, the jabber server would stop talking to us after
a while, and that's obviously no fun.

loudgame.c

index 2cb9a1869f62e16160909a4fad2add98524abb7e..d99a0d2e3677ba039b6bfa950870770e2d64ef9f 100644 (file)
@@ -200,6 +200,11 @@ make_connection (gpointer closure)
        loudgame_quit (lg, 1);
     }
 
        loudgame_quit (lg, 1);
     }
 
+    /* It seems to be necessary to explicitly tell the server we're
+     * still here. Let's see if one keep-alive every 60 seconds is
+     * sufficient. */
+    lm_connection_set_keep_alive_rate (lg->connection, 60);
+
     /* Return false to not schedule another call. */
     return 0;
 }
     /* Return false to not schedule another call. */
     return 0;
 }