# HG changeset patch # User Stu Tomlinson # Date 1277862402 0 # Node ID 1c20a2115ad43adaeed84b12591413fd145aa161 # Parent 6a3aaa4e5e56d54d71fb8eec23aeeaceb124a90a I'm sure there's a legitimate reason I had this change locally in one of my trees waiting to be committed, but I can't remember what exactly it is (and I need to test commit emails again) diff -r 6a3aaa4e5e56 -r 1c20a2115ad4 libpurple/connection.c --- a/libpurple/connection.c Wed Jun 30 01:12:54 2010 +0000 +++ b/libpurple/connection.c Wed Jun 30 01:46:42 2010 +0000 @@ -516,7 +516,8 @@ account = data; gc = purple_account_get_connection(account); - gc->disconnect_timeout = 0; + if (gc != NULL) + gc->disconnect_timeout = 0; password = g_strdup(purple_account_get_password(account)); purple_account_disconnect(account);