diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-02 16:59:25 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-02 16:59:25 +0000 |
commit | 2af13fd06268842dd42ada707db0e79b67e644d6 (patch) | |
tree | ea84dbf2ce363e9981b7058d002a3e683e733b48 | |
parent | 592c30f5da9d565d438cea482e2d941d15f72f26 (diff) | |
download | Essentials-2af13fd06268842dd42ada707db0e79b67e644d6.tar Essentials-2af13fd06268842dd42ada707db0e79b67e644d6.tar.gz Essentials-2af13fd06268842dd42ada707db0e79b67e644d6.tar.lz Essentials-2af13fd06268842dd42ada707db0e79b67e644d6.tar.xz Essentials-2af13fd06268842dd42ada707db0e79b67e644d6.zip |
[trunk] Delete temp files, if they are not needed.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1320 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java index 452caeec3..1ec9130a0 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java @@ -120,6 +120,8 @@ public class EssentialsUpgrade { throw new Exception("Failed to rename temp file to config.yml"); } + } else { + tempFile.delete(); } } |