raop: Fix sink getting destroyed after one use

It is expected to get disconnected after switching back to a
different sink.
This commit is contained in:
Colin Leroy 2016-11-06 12:54:12 -06:00 committed by Tanu Kaskinen
parent 1c56b86926
commit 81fa11e3a9

View file

@ -252,7 +252,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
if (u->sink->thread_info.state == PA_SINK_SUSPENDED) if (u->sink->thread_info.state == PA_SINK_SUSPENDED)
pa_rtpoll_set_timer_disabled(u->rtpoll); pa_rtpoll_set_timer_disabled(u->rtpoll);
else else if (u->sink->thread_info.state != PA_SINK_IDLE)
pa_module_unload_request(u->module, true); pa_module_unload_request(u->module, true);
return 0; return 0;