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