Commit 0d2daf11 authored by Erwan Croze's avatar Erwan Croze 👋🏻 Committed by Simon Morlat

Fix catch exception in Imdn destructor

parent b0cecc1a
......@@ -42,7 +42,9 @@ Imdn::Imdn (ChatRoom *chatRoom) : chatRoom(chatRoom) {
Imdn::~Imdn () {
stopTimer();
chatRoom->getCore()->getPrivate()->unregisterListener(this);
try {
chatRoom->getCore()->getPrivate()->unregisterListener(this);
} catch (const bad_weak_ptr &) {}
}
// -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment