diff src/protocols/oscar/oft.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 a79d422bfe62
children 931320242432
line wrap: on
line diff
--- a/src/protocols/oscar/oft.c	Mon Apr 10 02:47:43 2006 +0000
+++ b/src/protocols/oscar/oft.c	Mon Apr 10 03:37:37 2006 +0000
@@ -307,7 +307,7 @@
 	{
 		gaim_debug_info("oscar", "Received an incorrect cookie.  "
 				"Closing connection.\n");
-		peer_connection_destroy(conn, PEER_DISCONNECT_INVALID_DATA);
+		peer_connection_destroy(conn, OSCAR_DISCONNECT_INVALID_DATA);
 		return;
 	}
 
@@ -415,7 +415,7 @@
 	conn->xfer->fd = -1;
 	peer_oft_send_done(conn);
 
-	conn->disconnect_reason = PEER_DISCONNECT_DONE;
+	conn->disconnect_reason = OSCAR_DISCONNECT_DONE;
 	conn->sending_data_timer = gaim_timeout_add(100,
 			destroy_connection_when_done_sending_data, conn);
 }
@@ -524,7 +524,7 @@
 	if (conn == NULL)
 		return;
 
-	peer_connection_destroy(conn, PEER_DISCONNECT_LOCAL_CLOSED);
+	peer_connection_destroy(conn, OSCAR_DISCONNECT_LOCAL_CLOSED);
 }
 
 /*******************************************************************/