From b2de3ee8b57308a7359e5e5215f164946a7f9dfd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 29 Sep 2011 08:50:52 +0000 Subject: Flush stream after restore fails, thanks to Sune Molgaard for reporting. --- lib/backupclient/BackupClientRestore.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/backupclient/BackupClientRestore.cpp') diff --git a/lib/backupclient/BackupClientRestore.cpp b/lib/backupclient/BackupClientRestore.cpp index 4993f6ae..43ad73f3 100644 --- a/lib/backupclient/BackupClientRestore.cpp +++ b/lib/backupclient/BackupClientRestore.cpp @@ -569,6 +569,8 @@ static int BackupClientRestoreDir(BackupProtocolClient &rConnection, if (Params.ContinueAfterErrors) { Params.ContinuedAfterError = true; + // ensure that protocol remains usable + objectStream->Flush(); } else { -- cgit v1.2.3