mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::ctx: Prevent spawning initial pool contexts when no ios available.
This commit is contained in:
parent
c97fcb3b2a
commit
a66d5082d7
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue