diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-03 17:54:33 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-03 17:54:33 +0200 |
commit | 93aea47e3094302a27e01259348e52e3c9d3d0e2 (patch) | |
tree | 947485481073deaf46b1ce38ac925ee6772f7ec7 | |
parent | 6e2caf0d9ffd11b5cd425d7af153b653da95ab8d (diff) | |
download | TwitterDataAnalytics-93aea47e3094302a27e01259348e52e3c9d3d0e2.tar.gz |
TweetShell: Safely close files to prevent file corruption
-rw-r--r-- | src/main/TweetShell.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/TweetShell.java b/src/main/TweetShell.java index bd2472a..2b3b078 100644 --- a/src/main/TweetShell.java +++ b/src/main/TweetShell.java @@ -133,6 +133,8 @@ public class TweetShell implements TwitterApi.PinSupplier { // print prompt for reading next line printPrompt(); } + // prevent corrupted compressed files when exiting without a command + safeClose(); } public boolean execute(String cmd) { |