diff src/protocols/oscar/oscar_data.c @ 13608:6c34fbb75bbd

[gaim-migrate @ 15994] Disconnect the account with a decent error message when there are problems with an oscar FLAP connection. This needed to be added after I removed it when rewriting things for non-blocking I/O. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 10 Apr 2006 03:37:37 +0000
parents 4d8927a4f1ef
children
line wrap: on
line diff
--- a/src/protocols/oscar/oscar_data.c	Mon Apr 10 02:47:43 2006 +0000
+++ b/src/protocols/oscar/oscar_data.c	Mon Apr 10 03:37:37 2006 +0000
@@ -108,11 +108,12 @@
 	if (od->getinfotimer > 0)
 		gaim_timeout_remove(od->getinfotimer);
 	while (od->oscar_connections != NULL)
-		flap_connection_destroy(od->oscar_connections->data);
+		flap_connection_destroy(od->oscar_connections->data,
+				OSCAR_DISCONNECT_DONE);
 
 	while (od->peer_connections != NULL)
 		peer_connection_destroy(od->peer_connections->data,
-				PEER_DISCONNECT_LOCAL_CLOSED);
+				OSCAR_DISCONNECT_LOCAL_CLOSED);
 
 	if (od->handlerlist != NULL)
 		aim_clearhandlers(od);