0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️ Only set ircd offline presence on clean ~init.

This commit is contained in:
Jason Volk 2018-08-30 20:57:36 -07:00
parent 32a67c82c9
commit 140c4a5143

View file

@ -70,7 +70,9 @@ catch(const std::exception &e)
ircd::m::init::~init() ircd::m::init::~init()
noexcept try noexcept try
{ {
presence::set(me, "offline", me_offline_status_msg); if(!std::current_exception())
presence::set(me, "offline", me_offline_status_msg);
m::imports.clear(); m::imports.clear();
} }
catch(const m::error &e) catch(const m::error &e)