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>2016-11-22 09:46:08 +0300
committerEion Robb <eion@robbmob.com>2016-11-22 09:46:08 +0300
commit92c376f57934b7af4564332e0a1f7a75e0473b4e (patch)
treebc45f314cb58da59da61f3d0cc1b36fec53c8b21
parent32089582720f309802571f8879bcb17da1e9c62e (diff)
Fix for permanent disconnect with the 'Error fetching Skype Token' message when losing network connectivity
-rw-r--r--skypeweb/skypeweb_login.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/skypeweb/skypeweb_login.c b/skypeweb/skypeweb_login.c
index dc14d14..cc2026b 100644
--- a/skypeweb/skypeweb_login.c
+++ b/skypeweb/skypeweb_login.c
@@ -28,8 +28,13 @@ skypeweb_login_did_auth(PurpleUtilFetchUrlData *url_data, gpointer user_data, co
sa->url_datas = g_slist_remove(sa->url_datas, url_data);
- if (url_text != NULL)
+ if (url_text != NULL) {
refresh_token = skypeweb_string_get_chunk(url_text, len, "=\"skypetoken\" value=\"", "\"");
+ } else {
+ purple_connection_error(sa->pc,
+ PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
+ _("Failed getting Skype Token"));
+ }
if (refresh_token == NULL) {
purple_account_set_string(sa->account, "refresh-token", NULL);