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