From de3821affac7e91dc7c8692716550f7fbfe5a57f Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Sat, 19 Jan 2008 09:02:31 -0800
Subject: [PATCH] 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.
---
 loudgame.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 }
-- 
2.45.2