fix: getBandwidthGroup use right group (#2853)

Fixes #2828.
This commit is contained in:
Charles Kerr 2022-03-31 15:07:01 -05:00 committed by GitHub
parent 946cf04833
commit 98e8d5a3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2289,7 +2289,7 @@ Bandwidth& tr_session::getBandwidthGroup(std::string_view name)
if (it == std::end(groups))
{
it = groups.try_emplace(key, std::make_unique<Bandwidth>(&top_bandwidth_)).first;
it = groups.try_emplace(key, std::make_unique<Bandwidth>(new Bandwidth(&top_bandwidth_))).first;
}
return *it->second;