summaryrefslogtreecommitdiff
path: root/src/main/TweetShell.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/TweetShell.java')
-rw-r--r--src/main/TweetShell.java15
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());
- }
- }
- */
}
}