Commit 4242aee2 authored by Max Kellermann's avatar Max Kellermann

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

These flags are output-only. Using them here is misleading.
parent e71bd2a0
...@@ -109,7 +109,7 @@ public: ...@@ -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: ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment