client: different onInit() for monitor

This commit is contained in:
Michael Davidsaver
2021-01-02 14:43:25 -08:00
parent 8246a64806
commit 3dd4dd6a66
4 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -656,7 +656,7 @@ std::shared_ptr<Operation> RPCBuilder::exec()
auto context(ctx->impl->shared_from_this());
auto op(std::make_shared<GPROp>(Operation::RPC, context->tcp_loop));
op->setDone(std::move(_result), std::move(_onInit));
op->setDone(std::move(_result), nullptr);
if(_argument) {
if(!_autoexec)
throw std::invalid_argument("Pass RPC argument during reExec()");