mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 14:07:11 +03:00
ancient AirPlay bug : passing thread context in mutex destroy
This commit is contained in:
@@ -680,7 +680,7 @@ void cleanup_rtsp(raop_ctx_t *ctx, bool abort) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
pthread_join(ctx->active_remote.thread, NULL);
|
pthread_join(ctx->active_remote.thread, NULL);
|
||||||
close_mDNS(ctx->active_remote.handle);
|
close_mDNS(ctx->active_remote.handle);
|
||||||
#else
|
#else
|
||||||
// need to make sure no search is on-going and reclaim task memory
|
// need to make sure no search is on-going and reclaim task memory
|
||||||
ctx->active_remote.running = false;
|
ctx->active_remote.running = false;
|
||||||
xSemaphoreTake(ctx->active_remote.destroy_mutex, portMAX_DELAY);
|
xSemaphoreTake(ctx->active_remote.destroy_mutex, portMAX_DELAY);
|
||||||
|
|||||||
Reference in New Issue
Block a user