plugins/irc.c

changeset 1115
9ed1a5aa795a
parent 1105
8d9e2dc5453b
child 1134
5d83bd69ef9a
--- a/plugins/irc.c	Tue Nov 21 01:00:45 2000 +0000
+++ b/plugins/irc.c	Tue Nov 21 01:06:42 2000 +0000
@@ -861,7 +861,7 @@
 	host = gethostbyname(user->proto_opt[0]);
 	if (!host) {
 		hide_login_progress(gc, "Unable to resolve hostname");
-		destroy_gaim_conn(gc);
+		signoff(gc);
 		return;
 	}
 
@@ -872,13 +872,13 @@
 	fd = socket(AF_INET, SOCK_STREAM, 0);
 	if (fd < 0) {
 		hide_login_progress(gc, "Unable to create socket");
-		destroy_gaim_conn(gc);
+		signoff(gc);
 		return;
 	}
 
 	if (connect(fd, (struct sockaddr *)&site, sizeof(site)) < 0) {
 		hide_login_progress(gc, "Unable to connect.");
-		destroy_gaim_conn(gc);
+		signoff(gc);
 		return;
 	}
 

mercurial