zeroconf/AvahiPoll: don't pass ERROR|HANGUP to Schedule()

These flags are output-only.
This commit is contained in:
Max Kellermann 2020-04-23 15:19:12 +02:00
parent 4242aee21e
commit 905db05cf9

View File

@ -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