Mercurial > pidgin.yaz
changeset 20766:5beeb2e546c2
Prevent an assertion (w/ G_DEBUG=fatal_warnings) when the connection drops.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 04 Oct 2007 01:07:35 +0000 |
parents | 53691c081eab |
children | d91c76c76da8 |
files | libpurple/protocols/msn/session.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c Wed Oct 03 18:45:31 2007 +0000 +++ b/libpurple/protocols/msn/session.c Thu Oct 04 01:07:35 2007 +0000 @@ -130,7 +130,9 @@ msn_session_disconnect(MsnSession *session) { g_return_if_fail(session != NULL); - g_return_if_fail(session->connected); + + if (!session->connected) + return; session->connected = FALSE;