mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/s_listen: Start listener after loading iff run::level::RUN.
This commit is contained in:
parent
21d8c9ce76
commit
a9d8af1bf1
1 changed files with 4 additions and 0 deletions
|
@ -260,6 +260,10 @@ try
|
||||||
};
|
};
|
||||||
|
|
||||||
listeners.emplace_back(name, opts, client::create, _listener_proffer);
|
listeners.emplace_back(name, opts, client::create, _listener_proffer);
|
||||||
|
|
||||||
|
if(ircd::run::level == ircd::run::level::RUN)
|
||||||
|
start(listeners.back());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
|
|
Loading…
Reference in a new issue