From 10206992c4d279c6460c1c44127f9450662cc05c Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 7 May 2014 11:28:58 +0200 Subject: F it, get rid of junk --- src/main/TweetShell.java | 15 --------------- 1 file changed, 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()); - } - } - */ } } -- cgit v1.2.1