diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-10-30 16:14:57 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-10-30 16:14:57 +0000 |
commit | 67b18831e0ea40dd3f4438426cfb0f703a3fc971 (patch) | |
tree | c15550095482b1cc7e03c543a16ce0afcfe63647 /src | |
parent | eb437c2f0bbc7061570889a825b131969982cc9a (diff) |
Don't try to ping while we're disconnecting.
Diffstat (limited to 'src')
-rw-r--r-- | src/idle-connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idle-connection.c b/src/idle-connection.c index f4cf816..cb008c5 100644 --- a/src/idle-connection.c +++ b/src/idle-connection.c @@ -818,7 +818,8 @@ static gboolean keepalive_timeout_cb(gpointer user_data) { gchar cmd[IRC_MSG_MAXLEN + 1]; gint64 now; - if (priv->sconn_status != SERVER_CONNECTION_STATE_CONNECTED) { + if (priv->sconn_status != SERVER_CONNECTION_STATE_CONNECTED || + priv->quitting) { priv->keepalive_timeout = 0; return FALSE; } |