src/sync.c
branchENGINE-133
changeset 1447 c5ca494344d9
parent 1446 a948c1312c47
child 1459 ab329d7db8d7
     1.1 --- a/src/sync.c	Sun Nov 27 02:39:02 2016 +0100
     1.2 +++ b/src/sync.c	Mon Nov 28 10:29:07 2016 +0100
     1.3 @@ -166,8 +166,14 @@
     1.4          msg = (sync_msg_t *) session->retrieve_next_sync_msg(management, &timeout);
     1.5          if(msg == NULL && timeout == 0)
     1.6              break;
     1.7 -        else if(msg == NULL && timeout != 0)
     1.8 +        else if(msg == NULL && timeout != 0){
     1.9 +            status = fsm_DeviceState_inject(session, Timeout, NULL, NULL, &timeout);
    1.10 +            char buffer[MAX_LINELENGTH];
    1.11 +            memset(buffer, 0, MAX_LINELENGTH);
    1.12 +            snprintf(buffer, MAX_LINELENGTH, "problem with timeout event : %d\n", (int) status);
    1.13 +            log_event(session, buffer, "pEp sync protocol", NULL, NULL);
    1.14              continue;
    1.15 +        }
    1.16          else if ((status = receive_sync_msg(session, msg, &timeout) != PEP_STATUS_OK)) {
    1.17              char buffer[MAX_LINELENGTH];
    1.18              memset(buffer, 0, MAX_LINELENGTH);