summaryrefslogtreecommitdiff
path: root/lib/backupclient
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-09-29 08:50:52 +0000
committerChris Wilson <chris+github@qwirx.com>2011-09-29 08:50:52 +0000
commitb2de3ee8b57308a7359e5e5215f164946a7f9dfd (patch)
treecaefdaa6a46310bc0d2bd8cfae6176e610cd5bb2 /lib/backupclient
parentaa38c1d468c20bf35fca9123246a0506d6f8eca9 (diff)
Flush stream after restore fails, thanks to Sune Molgaard for reporting.
Diffstat (limited to 'lib/backupclient')
-rw-r--r--lib/backupclient/BackupClientRestore.cpp2
1 files changed, 2 insertions, 0 deletions
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
{