diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-07 11:28:58 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-07 11:28:58 +0200 |
commit | 10206992c4d279c6460c1c44127f9450662cc05c (patch) | |
tree | 9970e86ce580d5a0836615f9e086b766dfb13e84 /src | |
parent | 867c6f5aeb668428e7a73488a90f378ed587bf1f (diff) | |
download | TwitterDataAnalytics-10206992c4d279c6460c1c44127f9450662cc05c.tar.gz |
F it, get rid of junk
Diffstat (limited to 'src')
-rw-r--r-- | src/main/TweetShell.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main/TweetShell.java b/src/main/TweetShell.java index cb31511..4ba50f3 100644 --- a/src/main/TweetShell.java +++ b/src/main/TweetShell.java @@ -6,7 +6,6 @@ import io.OAuthRequester; import io.StreamImpl; import java.io.Closeable; import java.io.IOException; -import java.net.SocketTimeoutException; import java.util.Arrays; import java.util.Map; import java.util.NoSuchElementException; @@ -75,20 +74,6 @@ public class TweetShell implements TwitterApi.PinSupplier { @Override public void exceptionGenerated(Exception ex) { System.err.println("Stream closed due to " + ex); - /* Disabled because it deadlocks in WorkerContainer.finish - // to solve that if necessary, start commit in a new thread - if (ex instanceof SocketTimeoutException - || (ex instanceof IOException - && ex.getMessage().endsWith("Read timed out"))) { - try { - System.err.println("Trying to reconnect."); - getStream().commit(); - } catch (IOException ioex) { - System.err.println("Failed to re-connect: " - + ioex.getMessage()); - } - } - */ } } |