0
0
Fork 0
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:
Jason Volk 2018-08-17 12:42:24 -07:00
parent ff050ae7b0
commit fe69a41255

View file

@ -971,6 +971,9 @@ ircd::ctx::pool::del(const size_t &num)
{ {
const ssize_t requested(size() - num); const ssize_t requested(size() - num);
const size_t target(std::max(requested, ssize_t(0))); 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) while(ctxs.size() > target)
ctxs.pop_back(); ctxs.pop_back();
} }