changeset 27126:b1847ec1ba5f

These aren't needed either.
author Mark Doliner <mark@kingant.net>
date Fri, 19 Jun 2009 02:03:11 +0000
parents d8afc4ba7ce6
children c4f0e47c7bed
files libpurple/protocols/simple/simple.c libpurple/protocols/yahoo/yahoo.c
diffstat 2 files changed, 0 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/simple/simple.c	Fri Jun 19 01:52:03 2009 +0000
+++ b/libpurple/protocols/simple/simple.c	Fri Jun 19 02:03:11 2009 +0000
@@ -446,13 +446,6 @@
 	struct simple_account_data *sip;
 	struct sip_connection *conn;
 
-	if (!PURPLE_CONNECTION_IS_VALID(gc))
-	{
-		if (source >= 0)
-			close(source);
-		return;
-	}
-
 	if(source < 0) {
 		purple_connection_error_reason(gc,
 			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
@@ -1735,13 +1728,6 @@
 	struct simple_account_data *sip;
 	struct sip_connection *conn;
 
-	if (!PURPLE_CONNECTION_IS_VALID(gc))
-	{
-		if (source >= 0)
-			close(source);
-		return;
-	}
-
 	if(source < 0) {
 		purple_connection_error_reason(gc,
 			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
--- a/libpurple/protocols/yahoo/yahoo.c	Fri Jun 19 01:52:03 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Fri Jun 19 02:03:11 2009 +0000
@@ -2990,11 +2990,6 @@
 	struct yahoo_data *yd;
 	struct yahoo_packet *pkt;
 
-	if (!PURPLE_CONNECTION_IS_VALID(gc)) {
-		close(source);
-		return;
-	}
-
 	if (source < 0) {
 		gchar *tmp;
 		tmp = g_strdup_printf(_("Could not establish a connection with the server:\n%s"),