mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd::ctx::pool: Fix dtor; use terminate() rather than interrupt().
This commit is contained in:
parent
ff050ae7b0
commit
fe69a41255
1 changed files with 3 additions and 0 deletions
|
@ -971,6 +971,9 @@ ircd::ctx::pool::del(const size_t &num)
|
|||
{
|
||||
const ssize_t requested(size() - num);
|
||||
const size_t target(std::max(requested, ssize_t(0)));
|
||||
for(size_t i(target); i < ctxs.size(); ++i)
|
||||
ctxs.at(i).terminate();
|
||||
|
||||
while(ctxs.size() > target)
|
||||
ctxs.pop_back();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue