Browse Source

safeguard

synchronous
Volker Birk 5 years ago
parent
commit
8ca7b4c548
  1. 2
      callback_dispatcher.cc

2
callback_dispatcher.cc

@ -30,10 +30,12 @@ namespace pEp {
targets.push_back({messageToSend, notifyHandshake, on_startup, shutdown});
if (!Adapter::on_sync_thread()) {
// try_unlock() possibly waiting messageToSend
sync_mtx.try_lock();
sync_mtx.unlock();
}
}
void CallbackDispatcher::remove(::messageToSend_t messageToSend)
{

Loading…
Cancel
Save