src/sync.c
branchAllGroupDevicesShowHandshake
changeset 1622 4460e54ed8ba
parent 1603 f954f77387f1
child 2287 026ab4dae779
     1.1 --- a/src/sync.c	Wed Mar 01 15:59:00 2017 +0100
     1.2 +++ b/src/sync.c	Tue Mar 07 14:06:11 2017 +0100
     1.3 @@ -185,13 +185,16 @@
     1.4              continue;
     1.5  #endif
     1.6          }
     1.7 -        else if ((status = receive_sync_msg(session, msg, &timeout) != PEP_STATUS_OK)) {
     1.8 +        else {
     1.9 +            status = receive_sync_msg(session, msg, &timeout);
    1.10 +            if (status != PEP_STATUS_OK && status != PEP_MESSAGE_IGNORE) {
    1.11  #ifndef NDEBUG
    1.12 -            char buffer[MAX_LINELENGTH];
    1.13 -            memset(buffer, 0, MAX_LINELENGTH);
    1.14 -            snprintf(buffer, MAX_LINELENGTH, "problem with msg received: %d\n", (int) status);
    1.15 -            log_event(session, buffer, "pEp sync protocol", NULL, NULL);
    1.16 +                char buffer[MAX_LINELENGTH];
    1.17 +                memset(buffer, 0, MAX_LINELENGTH);
    1.18 +                snprintf(buffer, MAX_LINELENGTH, "problem with msg received: %d\n", (int) status);
    1.19 +                log_event(session, buffer, "pEp sync protocol", NULL, NULL);
    1.20  #endif
    1.21 +            }
    1.22          }
    1.23      }
    1.24