[Bug 47760] New: create_and_handle doesn't work if you get two channels back from a request
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Mar 23 12:05:37 CET 2012
https://bugs.freedesktop.org/show_bug.cgi?id=47760
Bug #: 47760
Summary: create_and_handle doesn't work if you get two channels
back from a request
Classification: Unclassified
Product: Telepathy
Version: git master
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: tp-glib
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: will.thompson at collabora.co.uk
QAContact: telepathy-bugs at lists.freedesktop.org
>From account-channel-request.c:
static void
handle_channels (TpSimpleHandler *handler,
TpAccount *account,
TpConnection *connection,
GList *channels,
GList *requests_satisfied,
gint64 user_action_time,
TpHandleChannelsContext *context,
gpointer user_data)
{
TpAccountChannelRequest *self = user_data;
TpChannel *channel;
if (G_UNLIKELY (g_list_length (channels) != 1))
{
GError error = { TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
"We are supposed to handle only one channel" };
tp_handle_channels_context_fail (context, &error);
But if you create_and_handle a 1-1 Tube channel, sometimes (but not always,
apparently…) you get both a Tube and a Tubes back in the same blob. I'm basing
this on seeing this debug message in my logs and intuition: I haven't actually
looked at the bus traffic and the error message provides no interesting
information. (I will add more details to the error shortly.)
11:02 cassidy | let's just kill Tubes channel
11:02 cassidy | (we have to keep them internally in the code but can
remove them
from the bus)
Are there any other cases where a request returns a plural reply? I think MUC
tubes might be one case.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list