# HG changeset patch # User Mark Doliner # Date 1229547046 0 # Node ID 075d700fdc7588fe89ece847a83e747948fc287d # Parent a8643ca8d2e0961a41e863e02d088c6d6df5ea4b 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. diff -r a8643ca8d2e0 -r 075d700fdc75 libpurple/protocols/myspace/myspace.c --- 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); }