|
|
@ -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) |
|
|
|
{ |
|
|
|