disable sync in any case sync
authorVolker Birk <vb@pep-project.org>
Thu, 30 Jan 2020 15:36:24 +0100
branchsync
changeset 43783c491922339d
parent 4377 168fe65883be
child 4379 9ca663ee0027
disable sync in any case
src/sync_api.c
     1.1 --- a/src/sync_api.c	Thu Jan 30 14:52:18 2020 +0100
     1.2 +++ b/src/sync_api.c	Thu Jan 30 15:36:24 2020 +0100
     1.3 @@ -255,12 +255,15 @@
     1.4          return PEP_ILLEGAL_VALUE;
     1.5  
     1.6      bool grouped = false;
     1.7 -    status = deviceGrouped(session, &grouped);
     1.8 +    PEP_STATUS status = deviceGrouped(session, &grouped);
     1.9      if (status)
    1.10          return status;
    1.11  
    1.12 -    if (!grouped)
    1.13 +    if (!grouped) {
    1.14 +        if (session->inject_sync_event)
    1.15 +            session->inject_sync_event((void *) SHUTDOWN, NULL);
    1.16          return PEP_STATUS_OK;
    1.17 +    }
    1.18  
    1.19      return signal_Sync_event(session, Sync_PR_keysync, LeaveDeviceGroup, NULL);
    1.20  }