Bug 21876

Summary: Calls g_critical if GetSessionHandlers fails
Product: Telepathy Reporter: Will Thompson <will>
Component: tp-farsightAssignee: Olivier Crête <olivier.crete>
Status: RESOLVED WONTFIX QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Will Thompson 2009-05-22 07:29:08 UTC
In get_session_handlers_cb, tp-fs has:

  g_critical ("Error calling GetSessionHandlers: %s", error->message);

I don't think criticaling is really appropriate here; the call should fail.
Comment 1 Olivier Crête 2010-05-26 19:05:40 UTC
I agree.. How do I fail it ? Calling Close() sounds savage to me.. And I don't have a StreamHandler to call Error() on..
Comment 2 Simon McVittie 2010-05-27 03:36:48 UTC
(In reply to comment #1)
> I agree.. How do I fail it ? Calling Close() sounds savage to me..

I think Close() is the best you can do here. If GetSessionHandlers fails, then the channel's implementation of MediaSignalling is pretty incompetent, tbh :-)
Comment 3 Will Thompson 2010-05-27 03:49:01 UTC
Group.RemoveMembersWithReason([self_handle], "", Group_Change_Reason_Error) ?
Comment 4 Simon McVittie 2010-05-27 03:57:49 UTC
(In reply to comment #3)
> Group.RemoveMembersWithReason([self_handle], "", Group_Change_Reason_Error) ?

Or that, yes. I'd be inclined to follow up with Close() if it fails (like MC does when ending channels in this way), since this code path is only entered if the CM is already broken...
Comment 5 Olivier Crête 2013-09-26 00:31:04 UTC
Tp-Farsight is obsolete, so is StreamHandler and the rest of StreamedMedia

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.