client: avoid assert() with invalid forceServer
op->chan may not be set if Channel::build() throws. eg. if forced server name is invalid for connect().
This commit is contained in:
+2
-2
@@ -848,8 +848,8 @@ std::shared_ptr<Subscription> MonitorBuilder::exec()
|
||||
// on worker
|
||||
|
||||
// ordering of dispatch()/call() ensures creation before destruction
|
||||
assert(op->chan);
|
||||
op->_cancel(true);
|
||||
if(op->chan)
|
||||
op->_cancel(true);
|
||||
}, std::move(temp)));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user