ancient AirPlay bug : passing thread context in mutex destroy

This commit is contained in:
philippe44
2023-09-08 22:35:06 -07:00
parent d10d12a85b
commit a72f471c35

View File

@@ -680,7 +680,7 @@ void cleanup_rtsp(raop_ctx_t *ctx, bool abort) {
#ifdef WIN32
pthread_join(ctx->active_remote.thread, NULL);
close_mDNS(ctx->active_remote.handle);
#else
#else
// need to make sure no search is on-going and reclaim task memory
ctx->active_remote.running = false;
xSemaphoreTake(ctx->active_remote.destroy_mutex, portMAX_DELAY);