add Context::close()
This commit is contained in:
@@ -82,6 +82,9 @@ std::shared_ptr<Operation> DiscoverBuilder::exec()
|
||||
|
||||
context->tcp_loop.dispatch([op, context, ping]() {
|
||||
|
||||
if(context->state!=ContextImpl::Running)
|
||||
throw std::logic_error("Context close()d");
|
||||
|
||||
bool first = context->discoverers.empty();
|
||||
|
||||
context->discoverers[op.get()] = op;
|
||||
|
||||
Reference in New Issue
Block a user