From f3ff56692e16fdeb33a15fa8e7123a058595d9ad Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 12 Jun 2022 19:39:36 +0200 Subject: [PATCH] Fix crash on logout (why did that line vanish?!?) --- src/ChatPage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index d4fbb801..0225ed27 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -616,6 +616,7 @@ ChatPage::handleSyncResponse(const mtx::responses::Sync &res, const std::string } } catch (const lmdb::error &e) { nhlog::db()->warn("Logged out in the mean time, dropping sync"); + return; } nhlog::net()->debug("sync completed: {}", res.next_batch);