Commit 2e45c0e8 authored by Philip Withnall's avatar Philip Withnall Committed by Travis Reitter

telepathy: Fix finalisation of Tpf.Logger if it hasn't been prepared

Closes: bgo#659585
parent 0719b657
......@@ -12,6 +12,8 @@ Bugs fixed:
* Bug 662314 — Gnome-shell restarts if I change my user status to
disconnected/unavailable
* Bug 663798 — Add AbstractFieldDetails.value_type
* Bug 659585 — GLib-GIO-CRITICAL **: g_bus_unwatch_name: assertion
`watcher_id > 0' failed
API changes:
* Add AbstractFieldDetails.id to identify instances of details
......
......@@ -60,7 +60,11 @@ internal class Logger : GLib.Object
~Logger ()
{
Bus.unwatch_name (this._logger_watch_id);
/* Can only be 0 if prepare() hasn't been called. */
if (this._logger_watch_id > 0)
{
Bus.unwatch_name (this._logger_watch_id);
}
}
public async bool prepare () throws GLib.Error
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment