Skip to content

Commit

Permalink
Listener: cancel delayed connections on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 20, 2024
1 parent ddcbcb8 commit fef521a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cm4all-lukko (0.33) unstable; urgency=low

*
* fix shutdown hang due to delayed connections

--

Expand Down
1 change: 1 addition & 0 deletions src/Listener.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Listener::Listener(Instance &_instance, const ListenerConfig &config)

Listener::~Listener() noexcept
{
delayed_connections.clear_and_dispose(DeleteDisposer{});
connections.clear_and_dispose(DeleteDisposer{});
}

Expand Down

0 comments on commit fef521a

Please sign in to comment.