diff --git a/src/Adapter.cc b/src/Adapter.cc index 23269c9..33dbf81 100644 --- a/src/Adapter.cc +++ b/src/Adapter.cc @@ -135,7 +135,7 @@ namespace pEp { int _cb_pass_sync_event_to_engine(::SYNC_EVENT ev, void *management) { if (ev != nullptr) { - ::do_sync_protocol_step(session(), nullptr, ev); + ::do_sync_protocol_step(session(), ev); } return 0; } diff --git a/src/Adapter.hxx b/src/Adapter.hxx index e0e784b..bca1efb 100644 --- a/src/Adapter.hxx +++ b/src/Adapter.hxx @@ -44,7 +44,7 @@ namespace pEp { // 3. Enter Sync Event Processing Loop (do_sync_protocol()) // this internally calls _retrieve_next_sync_event pEpLog("sync protocol loop started"); - ::do_sync_protocol(session(), (void *)obj); + ::do_sync_protocol(session()); pEpLog("sync protocol loop ended"); // 4. unregister_sync_callbacks()