Skip to content
Snippets Groups Projects
Commit db701e4e authored by Adrien Béraud's avatar Adrien Béraud
Browse files

pupnp: dispatch instead of post to avoid deadlock

Gitlab: #631
Change-Id: I17b5e5edd7bf4d7a7ce26d766146d796d41c8889
parent 6642a625
No related branches found
No related tags found
No related merge requests found
...@@ -619,7 +619,7 @@ void ...@@ -619,7 +619,7 @@ void
PUPnP::requestMappingRemove(const Mapping& mapping) PUPnP::requestMappingRemove(const Mapping& mapping)
{ {
// Send remove request using the matching IGD // Send remove request using the matching IGD
ioContext->dispatch([w = weak(), mapping] { ioContext->post([w = weak(), mapping] {
if (auto upnpThis = w.lock()) { if (auto upnpThis = w.lock()) {
// Abort if we are shutting down. // Abort if we are shutting down.
if (not upnpThis->isRunning()) if (not upnpThis->isRunning())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment