0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::ctx: Prevent spawning initial pool contexts when no ios available.

This commit is contained in:
Jason Volk 2018-12-28 13:07:50 -08:00
parent c97fcb3b2a
commit a66d5082d7

View file

@ -1245,7 +1245,10 @@ ircd::ctx::pool::pool(const string_view &name,
:name{name}
,opt{&opt}
{
add(this->opt->initial_ctxs);
// Can't spawn contexts when the ios isn't available. This may be the
// case for some static instances of pool: initial_ctxs value is ignored.
if(ircd::ios::available())
add(this->opt->initial_ctxs);
}
ircd::ctx::pool::~pool()