diff options
author | Max Kellermann <max@musicpd.org> | 2020-04-23 15:15:53 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-04-23 15:18:18 +0200 |
commit | 4242aee21ee15690b4eb5f83b726f02f64bc5c2a (patch) | |
tree | 1a8b65677e59036bfb8504fbd92d11e5629ee631 /src/event | |
parent | e71bd2a08b60292c4d5672501e0972c2a97fd398 (diff) |
event/SocketMonitor: remove HANGUP|ERROR from ScheduleRead()
These flags are output-only. Using them here is misleading.
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/SocketMonitor.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |