From 49847ac1c6c8424da0ec365ec42debeb8c223631 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Sat, 23 Jul 2005 15:56:06 +0000 Subject: [PATCH] Print the exception for which the connection was closed. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2511 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 78ee1682c..dfd2cf598 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -203,6 +203,8 @@ class PacketReader { void notifyConnectionError(Exception e) { done = true; connection.close(); + // Print the stack trace to help catch the problem + e.printStackTrace(); // Notify connection listeners of the error. ArrayList listenersCopy; synchronized (connectionListeners) {