raop: Do not flush when RTSP object is not ready

This patch fixes a crash issue reported at
https://github.com/hfujita/pulseaudio-raop2/issues/9
This commit is contained in:
Stephen Paul Weber 2016-11-06 12:54:16 -06:00 committed by Tanu Kaskinen
parent f4bd06bfa5
commit 751d88717e

View file

@ -1596,7 +1596,7 @@ int pa_raop_client_flush(pa_raop_client *c) {
pa_assert(c);
if (!c->rtsp) {
if (!c->rtsp || !pa_rtsp_exec_ready(c->rtsp)) {
pa_log_debug("Cannot FLUSH, connection not established yet...)");
return 0;
} else if (!c->sci) {