Hi Martin,

I'm catching up on old mail...

On Tue, May 31, 2011 at 3:57 PM, Martin Hamant <[email protected]> wrote:
> Yes it unregister but there is a small amount of time right after the command 
> (which returns "done!") that I suspect the process is still unregistering it. 
> I suspect that because when I am removing a playlist then adding it another 
> with the same ID *right after*, liquidsoap creates the playlist with a 
> trailing ".1". If I wait like 200ms before adding again the playlist, it 
> works like excepted.
> So I can't rely on the "done!" return value, to be my test criteria.... Or 
> maybe I am doing something wrong.

You're not doing anything wrong, there isn't any other way of doing
things currently. If this is really critical we could provide you with
a better way to wait for the source to be really unregistered, more
solid than an ad-hoc timeout of 200ms -- or provide a blocking version
of source.shutdown which only returns when the source is really
stopped. If you want, create a feature request for that. But it seems
that the 200ms wait does the trick for you, so this is probably not a
priority -- bear in mind that we're already having trouble to find
time to fix bugs these days.

Cheers,
--
David

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to