From db701e4eaefdc38556a651ad708d931981b19e95 Mon Sep 17 00:00:00 2001 From: Adrien Beraud Date: Fri, 13 Dec 2024 13:26:32 -0500 Subject: [PATCH] pupnp: dispatch instead of post to avoid deadlock Gitlab: #631 Change-Id: I17b5e5edd7bf4d7a7ce26d766146d796d41c8889 --- src/upnp/protocol/pupnp/pupnp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upnp/protocol/pupnp/pupnp.cpp b/src/upnp/protocol/pupnp/pupnp.cpp index 87eb69c..33a426b 100644 --- a/src/upnp/protocol/pupnp/pupnp.cpp +++ b/src/upnp/protocol/pupnp/pupnp.cpp @@ -619,7 +619,7 @@ void PUPnP::requestMappingRemove(const Mapping& mapping) { // Send remove request using the matching IGD - ioContext->dispatch([w = weak(), mapping] { + ioContext->post([w = weak(), mapping] { if (auto upnpThis = w.lock()) { // Abort if we are shutting down. if (not upnpThis->isRunning())