diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index 1fdf4a079442c0b9bde52571b342799f89b8b160..08ca78a2c7c74d96af12e81a7159f6ddd7d97808 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -2152,7 +2152,8 @@ JamiAccount::convModule() [this](auto&& syncMsg) { dht::ThreadPool::io().run([w = weak(), syncMsg] { if (auto shared = w.lock()) - shared->syncModule()->syncWithConnected(syncMsg); + if (auto sm = shared->syncModule()) + sm->syncWithConnected(syncMsg); }); }, [this](auto&& uri, auto&& device, auto&& msg, auto token = 0) {