Hi Mikel, On Fri, Dec 16, 2011 at 2:06 PM, Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> wrote: > Hi Luiz, > > > On 12/16/2011 09:43 AM, Luiz Augusto von Dentz wrote: >> >> IMO assert on daemon are not that great, it may help while developing but >> why not run with valgrind and let it crash? > > > I was not that much proposing to add the assertion, but to discuss if that > assertion should hold or not. > > Basically my question is: is it guaranteed that a transport will exist while > a gateway is connected or playing? Yes it should exist if media API is being used, while we are connecting we attempt to create the transport. > If yes, I think there is a bug somewhere, because those assertions do fail > sometimes. Probably, but it should be easier if you debug the state transitions. > I was specifically asking this regarding the internal state of the daemon, > but the same question could be formulated for the state exposed in D-Bus. It should be consistent, I would start by analyzing the logs, there seems to be at least one place where it call clear_configuration without being disconnected see media.c:endpoint_reply, that is when the endpoint stop responding. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html