From 4242aee21ee15690b4eb5f83b726f02f64bc5c2a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Apr 2020 15:15:53 +0200 Subject: event/SocketMonitor: remove HANGUP|ERROR from ScheduleRead() These flags are output-only. Using them here is misleading. --- src/event/SocketMonitor.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/event') diff --git a/src/event/SocketMonitor.hxx b/src/event/SocketMonitor.hxx index e4a2087d6..8e1dbc0e9 100644 --- a/src/event/SocketMonitor.hxx +++ b/src/event/SocketMonitor.hxx @@ -109,7 +109,7 @@ public: } bool ScheduleRead() noexcept { - return Schedule(GetScheduledFlags() | READ | HANGUP | ERROR); + return Schedule(GetScheduledFlags() | READ); } bool ScheduleWrite() noexcept { @@ -117,7 +117,7 @@ public: } void CancelRead() noexcept { - Schedule(GetScheduledFlags() & ~(READ|HANGUP|ERROR)); + Schedule(GetScheduledFlags() & ~READ); } void CancelWrite() noexcept { -- cgit v1.2.3