onClose confusion

This commit is contained in:
Michael Davidsaver
2020-02-03 10:39:35 -08:00
parent 24d9eb49f1
commit 95ed4b2993
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,6 @@ struct MonitorOp : public ServerOp,
std::function<void(bool)> onStart;
std::function<void()> onLowMark;
std::function<void()> onHighMark;
std::function<void(const std::string&)> onClose;
// const after setup phase
std::shared_ptr<const FieldDesc> type;
@@ -233,6 +232,7 @@ struct ServerMonitorControl : public server::MonitorControlOp
// nope
}
// TODO unnecessary wakeups?
if(auto serv = server.lock())
MonitorOp::maybeReply(serv.get(), mon);