mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Don't override error code set by timedif in vio init
This commit is contained in:
parent
1104619a52
commit
85993d2650
1 changed files with 4 additions and 1 deletions
|
@ -327,7 +327,10 @@ retry_vio_init:
|
|||
} else if (timediff < 0) {
|
||||
/* error code was set in csync_timediff() */
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_FATAL, "Synchronisation is not possible!");
|
||||
ctx->error_code = CSYNC_ERR_TIMESKEW;
|
||||
/* do not override error code set by timediff */
|
||||
if(ctx->error_code == CSYNC_ERR_NONE) {
|
||||
ctx->error_code = CSYNC_ERR_TIMESKEW;
|
||||
}
|
||||
rc = -1;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue