From 905db05cf9951cf7d395146aa2f0a95106508356 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Apr 2020 15:19:12 +0200 Subject: [PATCH] zeroconf/AvahiPoll: don't pass ERROR|HANGUP to Schedule() These flags are output-only. --- src/zeroconf/AvahiPoll.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/zeroconf/AvahiPoll.cxx b/src/zeroconf/AvahiPoll.cxx index cc62e67e4..43f084f92 100644 --- a/src/zeroconf/AvahiPoll.cxx +++ b/src/zeroconf/AvahiPoll.cxx @@ -26,9 +26,7 @@ static unsigned FromAvahiWatchEvent(AvahiWatchEvent e) { return (e & AVAHI_WATCH_IN ? SocketMonitor::READ : 0) | - (e & AVAHI_WATCH_OUT ? SocketMonitor::WRITE : 0) | - (e & AVAHI_WATCH_ERR ? SocketMonitor::ERROR : 0) | - (e & AVAHI_WATCH_HUP ? SocketMonitor::HANGUP : 0); + (e & AVAHI_WATCH_OUT ? SocketMonitor::WRITE : 0); } static AvahiWatchEvent