From: Carl Worth Date: Sat, 19 Jan 2008 17:02:31 +0000 (-0800) Subject: Add a call to lm_connection_set_keep_alive_rate X-Git-Url: https://git.cworth.org/git?p=loudgame;a=commitdiff_plain;h=de3821affac7e91dc7c8692716550f7fbfe5a57f Add a call to lm_connection_set_keep_alive_rate Without this, the jabber server would stop talking to us after a while, and that's obviously no fun. --- diff --git a/loudgame.c b/loudgame.c index 2cb9a18..d99a0d2 100644 --- a/loudgame.c +++ b/loudgame.c @@ -200,6 +200,11 @@ make_connection (gpointer closure) 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; }