aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-10-08 23:58:21 -0300
committerdequis <dx@dxzone.com.ar>2015-10-13 01:23:46 -0300
commitb87e5dc342b45e35656a747345b8496217f3b130 (patch)
treeed5fec7965b06b25e75bb7b203d782af9f8eb173
parentbbff22d5c2f3a7cef28bd57c7a73379b0c5d2623 (diff)
skype: use ssl_sockerr_again() instead of sockerr_again()
Found the thing using 100% cpu because of a dead connection that it didn't want to bury.
-rw-r--r--protocols/skype/skype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/skype/skype.c b/protocols/skype/skype.c
index 1727c4af..d42d98eb 100644
--- a/protocols/skype/skype.c
+++ b/protocols/skype/skype.c
@@ -1256,7 +1256,7 @@ static gboolean skype_read_callback(gpointer data, gint fd,
lineptr++;
}
g_strfreev(lines);
- } else if (st == 0 || (st < 0 && !sockerr_again())) {
+ } else if (st == 0 || (st < 0 && !ssl_sockerr_again(sd->ssl))) {
ssl_disconnect(sd->ssl);
sd->fd = -1;
sd->ssl = NULL;