sharedpv: avoid deadlock on error path
Need to unlock for all MonitorSetupOp methods
This commit is contained in:
@@ -92,6 +92,7 @@ struct SharedPV::Impl : public std::enable_shared_from_this<Impl>
|
||||
self->subscribers.emplace(std::move(sub));
|
||||
|
||||
}catch(std::exception& e){
|
||||
UnGuard U(G);
|
||||
log_warn_printf(logshared, "%s Client %s: Can't attach() monitor: %s\n",
|
||||
conn->name().c_str(), conn->peerName().c_str(), e.what());
|
||||
// not re-throwing for consistency
|
||||
|
||||
Reference in New Issue
Block a user