Commit ed1caffc authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

odbus/Watch: use SocketEvent::ReleaseSocket() to allow another Open()

parent 65473b51
......@@ -54,7 +54,7 @@ DbusToLibevent(unsigned flags) noexcept
void
WatchManager::Watch::Toggled() noexcept
{
event.Cancel();
event.ReleaseSocket();
if (dbus_watch_get_enabled(&watch)) {
event.Open(SocketDescriptor(dbus_watch_get_unix_fd(&watch)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment