summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r--protocols/FacebookRM/src/connection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp
index b256e9ae9f..2ccc754c76 100644
--- a/protocols/FacebookRM/src/connection.cpp
+++ b/protocols/FacebookRM/src/connection.cpp
@@ -231,6 +231,13 @@ void FacebookProto::MessageLoop(void *)
{
if (isOffline() || m_signingOut)
break;
+
+ // If we're not idle, send activity_ping every few minutes...
+ if (!m_idleTS && (::time(NULL) - m_pingTS) > FACEBOOK_PING_TIME) {
+ debugLogA("***** FacebookProto::MessageLoop[%d] pinging...", tim);
+ facy.activity_ping();
+ }
+
debugLogA("***** FacebookProto::MessageLoop[%d] refreshing...", tim);
}