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())