diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-14 12:12:54 +0100 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2019-10-12 13:10:33 +0300 |
commit | 5e5b677173ef64055b4a7073cb5a15066fc03f70 (patch) | |
tree | 02cb883654d400a655947aba7f25bfa5a49b0336 | |
parent | acf5fcf4d830ae0b5953d8ded8eba4c17726c6f3 (diff) | |
download | telepathy-idle-5e5b677173ef64055b4a7073cb5a15066fc03f70.tar.gz |
idle-connection: make sure to always reset force_disconnect_id
Recent GLib raises a critical when trying to remove an invalid source.
(cherry picked from commit 12211654baa75db13a05b5c2b3293d1378fcf7a2)
-rw-r--r-- | src/idle-connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idle-connection.c b/src/idle-connection.c index 71c020f..8614d52 100644 --- a/src/idle-connection.c +++ b/src/idle-connection.c @@ -585,6 +585,7 @@ static gboolean _finish_shutdown_idle_func(gpointer data) { IdleConnectionPrivate *priv = self->priv; if (priv->force_disconnect_id != 0) { g_source_remove(priv->force_disconnect_id); + priv->force_disconnect_id = 0; } tp_base_connection_finish_shutdown(conn); |