Removing log_event errors - if it fails, it fails.
authorKrista Bennett <krista@pep-project.org>
Mon, 12 Feb 2018 12:45:27 +0100
changeset 2499b590fce7ee75
parent 2498 35f675338705
child 2500 b9e025865715
Removing log_event errors - if it fails, it fails.
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Mon Feb 12 12:17:03 2018 +0100
     1.2 +++ b/src/pEpEngine.c	Mon Feb 12 12:45:27 2018 +0100
     1.3 @@ -1484,15 +1484,10 @@
     1.4          sqlite3_bind_text(session->log, 4, comment, -1, SQLITE_STATIC);
     1.5      else
     1.6          sqlite3_bind_null(session->log, 4);
     1.7 -    do {
     1.8 -        result = sqlite3_step(session->log);
     1.9 -        assert(result == SQLITE_DONE || result == SQLITE_BUSY);
    1.10 -        if (result != SQLITE_DONE && result != SQLITE_BUSY)
    1.11 -            status = PEP_UNKNOWN_ERROR;
    1.12 -    } while (result == SQLITE_BUSY);
    1.13 +    result = sqlite3_step(session->log);
    1.14      sqlite3_reset(session->log);
    1.15  
    1.16 -    return status;
    1.17 +    return PEP_STATUS_OK; // We ignore errors for this function.
    1.18  }
    1.19  
    1.20  DYNAMIC_API PEP_STATUS log_service(