event/SocketMonitor: remove HANGUP|ERROR from ScheduleRead()
These flags are output-only. Using them here is misleading.
This commit is contained in:
parent
e71bd2a08b
commit
4242aee21e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user