mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
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
This commit is contained in:
parent
74028cdb9f
commit
49847ac1c6
1 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,8 @@ class PacketReader {
|
||||||
void notifyConnectionError(Exception e) {
|
void notifyConnectionError(Exception e) {
|
||||||
done = true;
|
done = true;
|
||||||
connection.close();
|
connection.close();
|
||||||
|
// Print the stack trace to help catch the problem
|
||||||
|
e.printStackTrace();
|
||||||
// Notify connection listeners of the error.
|
// Notify connection listeners of the error.
|
||||||
ArrayList listenersCopy;
|
ArrayList listenersCopy;
|
||||||
synchronized (connectionListeners) {
|
synchronized (connectionListeners) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue