|
|
|
@ -34,8 +34,6 @@ namespace pEp {
|
|
|
|
|
namespace Adapter {
|
|
|
|
|
messageToSend_t _messageToSend = nullptr;
|
|
|
|
|
notifyHandshake_t _notifyHandshake = nullptr;
|
|
|
|
|
messageToSend_t _messageToSend_sync = nullptr;
|
|
|
|
|
notifyHandshake_t _notifyHandshake_sync = nullptr;
|
|
|
|
|
std::thread *_sync_thread = nullptr;
|
|
|
|
|
|
|
|
|
|
::utility::locked_queue< SYNC_EVENT > q;
|
|
|
|
@ -89,12 +87,8 @@ namespace pEp {
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case init:
|
|
|
|
|
if (!_session) {
|
|
|
|
|
if (in_sync && _messageToSend_sync)
|
|
|
|
|
status = ::init(&_session, _messageToSend_sync, _inject_sync_event);
|
|
|
|
|
else
|
|
|
|
|
status = ::init(&_session, _messageToSend, _inject_sync_event);
|
|
|
|
|
}
|
|
|
|
|
if (!_session)
|
|
|
|
|
status = ::init(&_session, _messageToSend, _inject_sync_event);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|