changeset 24802:075d700fdc75

Let's actually close the socket when we sign off a myspace account. Fixes the bug where you wouldn't actually sign off when you sign off.
author Mark Doliner <mark@kingant.net>
date Wed, 17 Dec 2008 20:50:46 +0000
parents a8643ca8d2e0
children 759dbafdc74a
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Wed Dec 17 18:36:31 2008 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Wed Dec 17 20:50:46 2008 +0000
@@ -2241,6 +2241,10 @@
 	if (session->gc->inpa) {
 		purple_input_remove(session->gc->inpa);
 	}
+	if (session->fd >= 0) {
+		close(session->fd);
+		session->fd = -1;
+	}
 
 	msim_session_destroy(session);
 }