mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
@@ -497,7 +497,7 @@ SubscriptionManager::subscribeHelper(
|
||||
CleanupFunction&& func)
|
||||
{
|
||||
subs.subscribe(session);
|
||||
std::unique_lock lk(cleanupMtx_);
|
||||
std::scoped_lock lk(cleanupMtx_);
|
||||
cleanupFuncs_[session].push_back(std::move(func));
|
||||
}
|
||||
template <typename Key>
|
||||
@@ -509,14 +509,14 @@ SubscriptionManager::subscribeHelper(
|
||||
CleanupFunction&& func)
|
||||
{
|
||||
subs.subscribe(session, k);
|
||||
std::unique_lock lk(cleanupMtx_);
|
||||
std::scoped_lock lk(cleanupMtx_);
|
||||
cleanupFuncs_[session].push_back(std::move(func));
|
||||
}
|
||||
|
||||
void
|
||||
SubscriptionManager::cleanup(std::shared_ptr<WsBase> session)
|
||||
{
|
||||
std::unique_lock lk(cleanupMtx_);
|
||||
std::scoped_lock lk(cleanupMtx_);
|
||||
if (!cleanupFuncs_.contains(session))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user