summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch2/Client.cpp')
-rw-r--r--cpp/src/IcePatch2/Client.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Client.cpp b/cpp/src/IcePatch2/Client.cpp
index d3c8d4a8156..db24c1cc0ea 100644
--- a/cpp/src/IcePatch2/Client.cpp
+++ b/cpp/src/IcePatch2/Client.cpp
@@ -238,7 +238,10 @@ Client::run(int argc, char* argv[])
aborted = !patcher->patch("");
}
- patcher->finish();
+ if(!aborted)
+ {
+ patcher->finish();
+ }
}
catch(const string& ex)
{