mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-16 17:10:03 -04:00
Re-establish closecb only when no requests are in flight
This commit is contained in:
parent
ef52e922b2
commit
961b2484b8
@ -1785,6 +1785,7 @@ raop_cb_set_volume(struct evrtsp_request *req, void *arg)
|
|||||||
rs->status_cb = NULL;
|
rs->status_cb = NULL;
|
||||||
status_cb(rs->dev, rs, rs->state);
|
status_cb(rs->dev, rs, rs->state);
|
||||||
|
|
||||||
|
if (!rs->reqs_in_flight)
|
||||||
evrtsp_connection_set_closecb(rs->ctrl, raop_rtsp_close_cb, rs);
|
evrtsp_connection_set_closecb(rs->ctrl, raop_rtsp_close_cb, rs);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -1847,6 +1848,7 @@ raop_cb_flush(struct evrtsp_request *req, void *arg)
|
|||||||
rs->status_cb = NULL;
|
rs->status_cb = NULL;
|
||||||
status_cb(rs->dev, rs, rs->state);
|
status_cb(rs->dev, rs, rs->state);
|
||||||
|
|
||||||
|
if (!rs->reqs_in_flight)
|
||||||
evrtsp_connection_set_closecb(rs->ctrl, raop_rtsp_close_cb, rs);
|
evrtsp_connection_set_closecb(rs->ctrl, raop_rtsp_close_cb, rs);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -2892,6 +2894,7 @@ raop_cb_startup_volume(struct evrtsp_request *req, void *arg)
|
|||||||
|
|
||||||
status_cb(rs->dev, rs, rs->state);
|
status_cb(rs->dev, rs, rs->state);
|
||||||
|
|
||||||
|
if (!rs->reqs_in_flight)
|
||||||
evrtsp_connection_set_closecb(rs->ctrl, raop_rtsp_close_cb, rs);
|
evrtsp_connection_set_closecb(rs->ctrl, raop_rtsp_close_cb, rs);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user