Summary: | tp_base_connection_change_status can have a side-effect before hitting a return_if_fail | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Simon McVittie <smcv> |
Component: | tp-glib | Assignee: | Simon McVittie <smcv> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | marco.barisione |
Version: | 0.13 | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.collabora.co.uk/git/user/smcv/telepathy-glib-smcv.git/commit/?h=014-am-i-critical-or-not | ||
Whiteboard: | NB#254027, review+ | ||
i915 platform: | i915 features: | ||
Attachments: | tp_base_connection_change_status: delay side-effects until all preconditions are checked |
Description
Simon McVittie
2011-05-10 10:53:25 UTC
Created attachment 46558 [details] [review] tp_base_connection_change_status: delay side-effects until all preconditions are checked If the caller makes an invalid state change, we shouldn't allow the status to be updated, for instance from DISCONNECTED to CONNECTED if success and failure race with each other and failure wins, as seen in fd.o #37078; we should just emit the critical warning and leave it DISCONNECTED. ship it Shipped it: 0.14.6, 0.15.0. |
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.