Roland0 wrote: > > I suspect the race condition is > - rhasspy sends "announce" command > - plugin saves player state (paused) and returns > - rhasspy sends "play" command > - plugin finished announcement and restores player state (paused) --------------------
Yes, this is the condition I was thinking of, too. I will take the steps you suggested to verify that is the case, though. If that is the case, how would we solve it? This is where I thought a queue might come in handy - listen to requests that came in while the notification was playing and repeat them once we restore, but maybe theres a better way? When you say "it would block the server", would that mean the entirety of the server, including playback and all that or just whatever thread handles commands? Cause I would be okay with that part being frozen during the announcement if that's the easiest way out of this race condition. ------------------------------------------------------------------------ mots's Profile: http://forums.slimdevices.com/member.php?userid=71103 View this thread: http://forums.slimdevices.com/showthread.php?t=109096 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
