From b87e5dc342b45e35656a747345b8496217f3b130 Mon Sep 17 00:00:00 2001 From: dequis Date: Thu, 8 Oct 2015 23:58:21 -0300 Subject: 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. --- protocols/skype/skype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') 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; -- cgit v1.2.3