From 60b9960c3dbb512d53ac764e43281faafa2bfc6c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 15 Apr 2018 17:52:23 -0700 Subject: [PATCH] ircd::m: Tweaks to bootstrap / init task ordering. --- ircd/m/m.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircd/m/m.cc b/ircd/m/m.cc index 14cb83442..865c0c1bf 100644 --- a/ircd/m/m.cc +++ b/ircd/m/m.cc @@ -147,6 +147,7 @@ catch(const std::exception &e) ircd::m::init::~init() noexcept try { + listeners.reset(nullptr); leave_ircd_room(); } catch(const m::error &e) @@ -271,10 +272,10 @@ ircd::m::init::bootstrap() ); create(user::users, me.user_id); + create(my_room, me.user_id); create(me.user_id); me.activate(); - create(my_room, me.user_id); send(my_room, me.user_id, "m.room.name", "", { { "name", "IRCd's Room" }