From b782812ce519f02aac2b14096ccfdcf615eecadd Mon Sep 17 00:00:00 2001 From: Martin Raiber Date: Thu, 6 Sep 2012 16:22:03 +0200 Subject: [PATCH] Better hash error handling --- urbackupserver/fileclient/FileClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/urbackupserver/fileclient/FileClient.cpp b/urbackupserver/fileclient/FileClient.cpp index b41fade3..1f25470f 100644 --- a/urbackupserver/fileclient/FileClient.cpp +++ b/urbackupserver/fileclient/FileClient.cpp @@ -635,6 +635,7 @@ bool FileClient::Reconnect(void) if(memcmp(hash_func.raw_digest_int(), hash_buf, 16)!=0) { Server->Log("Error while downloading file: hash wrong -1", LL_ERROR); + Reconnect(); return ERR_HASH; } hash_func.init(); @@ -718,6 +719,7 @@ bool FileClient::Reconnect(void) if(memcmp(hash_func.raw_digest_int(), hash_buf, 16)!=0) { Server->Log("Error while downloading file: hash wrong -2", LL_ERROR); + Reconnect(); return ERR_HASH; } hash_func.init();