Browse Source

ancient AirPlay bug : passing thread context in mutex destroy

philippe44 1 year ago
parent
commit
a72f471c35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/raop/raop.c

+ 1 - 1
components/raop/raop.c

@@ -680,7 +680,7 @@ void cleanup_rtsp(raop_ctx_t *ctx, bool abort) {
 		xSemaphoreTake(ctx->active_remote.destroy_mutex, portMAX_DELAY);
 		vTaskDelete(ctx->active_remote.thread);
 		SAFE_PTR_FREE(ctx->active_remote.xTaskBuffer);
-		vSemaphoreDelete(ctx->active_remote.thread);
+		vSemaphoreDelete(ctx->active_remote.destroy_mutex);
 #endif
 		memset(&ctx->active_remote, 0, sizeof(ctx->active_remote));
 		LOG_INFO("[%p]: Remote search thread aborted", ctx);