Skip to content

Commit

Permalink
Fix for permanent disconnect with the 'Error fetching Skype Token' me…
Browse files Browse the repository at this point in the history
…ssage when losing network connectivity
  • Loading branch information
EionRobb committed Nov 22, 2016
1 parent 3208958 commit 92c376f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion skypeweb/skypeweb_login.c
Expand Up @@ -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);
Expand Down

0 comments on commit 92c376f

Please sign in to comment.