pidgin: 98bb92b7: Let's actually close the socket when we ...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Dec 17 16:01:17 EST 2008


-----------------------------------------------------------------
Revision: 98bb92b730985c4b69ec5cf85884e6a9e3889816
Ancestor: 33d3e7b191d6c22d10b2ee99b24b42358ea9f4a9
Author: markdoliner at pidgin.im
Date: 2008-12-17T20:50:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/98bb92b730985c4b69ec5cf85884e6a9e3889816

Modified files:
        libpurple/protocols/myspace/myspace.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	021969af0e90d6df0ee92bf6503ded981364b1e4
+++ libpurple/protocols/myspace/myspace.c	2e9af0b3ef81e51c5cd61445a453f2c86e1bdcf5
@@ -2241,6 +2241,10 @@ msim_close(PurpleConnection *gc)
 	if (session->gc->inpa) {
 		purple_input_remove(session->gc->inpa);
 	}
+	if (session->fd >= 0) {
+		close(session->fd);
+		session->fd = -1;
+	}
 
 	msim_session_destroy(session);
 }


More information about the Commits mailing list