From ed1caffc797e96d8ad28a00e480d037454b5f640 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 4 Dec 2020 11:25:07 +0100 Subject: [PATCH] odbus/Watch: use SocketEvent::ReleaseSocket() to allow another Open() --- src/lib/dbus/Watch.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dbus/Watch.cxx b/src/lib/dbus/Watch.cxx index d8f6c796f..02268b6b4 100644 --- a/src/lib/dbus/Watch.cxx +++ b/src/lib/dbus/Watch.cxx @@ -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)));