Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2008-07-20 04:21:24 +0400
committerEion Robb <eion@robbmob.com>2008-07-20 04:21:24 +0400
commit96ce3d65f051eab404eafc01cce5d26191d62079 (patch)
tree6a4a0d853ae29e4678cb642bd5c1f34c043d8e9e /skype_messaging_network.c
parenteb5b7d2081b308ae130751f67581d49ffb90f978 (diff)
Add in a timeout to allow reconnections after 10 seconds
Diffstat (limited to 'skype_messaging_network.c')
-rw-r--r--skype_messaging_network.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/skype_messaging_network.c b/skype_messaging_network.c
index 4437cce..15986a0 100644
--- a/skype_messaging_network.c
+++ b/skype_messaging_network.c
@@ -163,6 +163,13 @@ hide_skype()
return;
}
+gboolean
+connection_timeout(gpointer data)
+{
+ in_progress = FALSE;
+ return FALSE;
+}
+
static gboolean
exec_skype()
{
@@ -172,6 +179,7 @@ exec_skype()
PurpleAccount *acct = skype_get_account(NULL);
purple_proxy_connect(acct->gc, acct, purple_account_get_string(acct, "host", "skype.robbmob.com"), purple_account_get_int(acct, "port", 5000), connect_function, acct);
g_thread_create((GThreadFunc)skype_read_thread, acct, FALSE, NULL);
+ purple_timeout_add_seconds(10, connection_timeout, acct);
}
return TRUE;
}