[telepathy-mission-control/master] fd.o #22670: when a client loses a well-known name, don't assume it crashed
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Jul 8 05:28:06 PDT 2009
This was a logic error; this code was only meant to run when the client
lost its unique name.
---
src/mcd-dispatcher.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index fa7cf43..b21060b 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2614,11 +2614,10 @@ name_owner_changed_cb (TpDBusDaemon *proxy,
}
}
- if (old_owner[0] == ':')
+ if (name[0] == ':')
{
/* it's a unique name - maybe it was handling some channels? */
- _mcd_handler_map_set_handler_crashed (priv->handler_map,
- old_owner);
+ _mcd_handler_map_set_handler_crashed (priv->handler_map, name);
}
}
else if (old_owner[0] != '\0' && new_owner[0] != '\0')
--
1.5.6.5
More information about the telepathy-commits
mailing list