0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 21:38:54 +01:00

ircd:Ⓜ️ Tweaks to bootstrap / init task ordering.

This commit is contained in:
Jason Volk 2018-04-15 17:52:23 -07:00
parent d6e5723014
commit 60b9960c3d

View file

@ -147,6 +147,7 @@ catch(const std::exception &e)
ircd::m::init::~init() ircd::m::init::~init()
noexcept try noexcept try
{ {
listeners.reset(nullptr);
leave_ircd_room(); leave_ircd_room();
} }
catch(const m::error &e) catch(const m::error &e)
@ -271,10 +272,10 @@ ircd::m::init::bootstrap()
); );
create(user::users, me.user_id); create(user::users, me.user_id);
create(my_room, me.user_id);
create(me.user_id); create(me.user_id);
me.activate(); me.activate();
create(my_room, me.user_id);
send(my_room, me.user_id, "m.room.name", "", send(my_room, me.user_id, "m.room.name", "",
{ {
{ "name", "IRCd's Room" } { "name", "IRCd's Room" }