src/sync.c
branchkeysync
changeset 986 8f85f70bdd75
parent 976 75cbd583a894
child 987 923fdc4de690
     1.1 --- a/src/sync.c	Mon Aug 08 17:32:51 2016 +0200
     1.2 +++ b/src/sync.c	Tue Aug 09 00:08:08 2016 +0200
     1.3 @@ -29,6 +29,10 @@
     1.4  }
     1.5  
     1.6  DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session) {
     1.7 +    // stop state machine
     1.8 +    session->sync_state = DeviceState_state_NONE;
     1.9 +
    1.10 +    // unregister
    1.11      session->sync_obj = NULL;
    1.12      session->messageToSend = NULL;
    1.13      session->showHandshake = NULL;