use the correct interface sync
authorVolker Birk <vb@pep.foundation>
Mon, 22 Oct 2018 10:53:31 +0200
branchsync
changeset 305ce22219117dd
parent 304 00916b0afaac
child 306 68a6adf189f8
use the correct interface
CpEpEngine.cpp
     1.1 --- a/CpEpEngine.cpp	Mon Oct 22 10:14:50 2018 +0200
     1.2 +++ b/CpEpEngine.cpp	Mon Oct 22 10:53:31 2018 +0200
     1.3 @@ -743,7 +743,11 @@
     1.4          return PEP_ILLEGAL_VALUE;
     1.5  
     1.6      for (auto p = sync_callbacks.begin(); p != sync_callbacks.end(); ++p) {
     1.7 -        IpEpEngineCallbacks *cb = p->pdata->unmarshaled;
     1.8 +        IpEpEngineCallbacks *cb;
     1.9 +        if (in_sync)
    1.10 +            cb = p->cdata;
    1.11 +        else
    1.12 +            cb = p->pdata->unmarshaled;
    1.13  
    1.14          if (cb) {
    1.15              TextMessage _msg;