Skip to content

Commit

Permalink
pupnp: dispatch instead of post to avoid deadlock
Browse files Browse the repository at this point in the history
Gitlab: #631
Change-Id: I17b5e5edd7bf4d7a7ce26d766146d796d41c8889
  • Loading branch information
aberaud committed Dec 13, 2024
1 parent 6642a62 commit db701e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upnp/protocol/pupnp/pupnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit db701e4

Please sign in to comment.