event/SocketMonitor: remove HANGUP|ERROR from ScheduleRead()

These flags are output-only.  Using them here is misleading.
This commit is contained in:
Max Kellermann 2020-04-23 15:15:53 +02:00
parent e71bd2a08b
commit 4242aee21e

View File

@ -109,7 +109,7 @@ public:
} }
bool ScheduleRead() noexcept { bool ScheduleRead() noexcept {
return Schedule(GetScheduledFlags() | READ | HANGUP | ERROR); return Schedule(GetScheduledFlags() | READ);
} }
bool ScheduleWrite() noexcept { bool ScheduleWrite() noexcept {
@ -117,7 +117,7 @@ public:
} }
void CancelRead() noexcept { void CancelRead() noexcept {
Schedule(GetScheduledFlags() & ~(READ|HANGUP|ERROR)); Schedule(GetScheduledFlags() & ~READ);
} }
void CancelWrite() noexcept { void CancelWrite() noexcept {