COM-90: Register messageToSend callback during startup of adapter sync
authorThomas
Wed, 10 Jul 2019 07:49:44 +0200
branchsync
changeset 353849bc2cf553f
parent 352 e21fa36e4183
child 354 652e7002fe9d
COM-90: Register messageToSend callback during startup of adapter
CpEpEngine.h
     1.1 --- a/CpEpEngine.h	Sun Jul 07 20:14:21 2019 +0200
     1.2 +++ b/CpEpEngine.h	Wed Jul 10 07:49:44 2019 +0200
     1.3 @@ -88,6 +88,9 @@
     1.4      {
     1.5          std::lock_guard<std::mutex> lock(init_mutex);
     1.6          try {
     1.7 +            if (!_messageToSend) {
     1.8 +                _messageToSend = messageToSend;
     1.9 +            }
    1.10              session();
    1.11          }
    1.12          catch (pEp::RuntimeError& e) {