aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/MultiSocketMonitor.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/MultiSocketMonitor.hxx')
-rw-r--r--src/event/MultiSocketMonitor.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/event/MultiSocketMonitor.hxx b/src/event/MultiSocketMonitor.hxx
index 781fdeca6..50be18070 100644
--- a/src/event/MultiSocketMonitor.hxx
+++ b/src/event/MultiSocketMonitor.hxx
@@ -101,7 +101,10 @@ public:
}
protected:
- virtual void PrepareSockets(gcc_unused gint *timeout_r) {}
+ /**
+ * @return timeout [ms] or -1 for no timeout
+ */
+ virtual int PrepareSockets() = 0;
virtual bool CheckSockets() const { return false; }
virtual void DispatchSockets() = 0;
@@ -114,7 +117,7 @@ public:
private:
bool Prepare(gint *timeout_r) {
- PrepareSockets(timeout_r);
+ *timeout_r = PrepareSockets();
return false;
}