summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-04-23 15:15:53 +0200
committerMax Kellermann <max@musicpd.org>2020-04-23 15:18:18 +0200
commit4242aee21ee15690b4eb5f83b726f02f64bc5c2a (patch)
tree1a8b65677e59036bfb8504fbd92d11e5629ee631 /src/event
parente71bd2a08b60292c4d5672501e0972c2a97fd398 (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.hxx4
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 {