Commit bd5077fa authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Log the exception before closing the connection.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1179 b35dd754-fafc-0310-a699-88a17e54d16e
parent a757d378
......@@ -287,6 +287,7 @@ public class ClientSession extends Session {
conn.deliver(packet);
}
catch (Exception e) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), e);
// TODO: Should attempt to do something with the packet
try {
conn.close();
......
......@@ -208,6 +208,7 @@ public class ComponentSession extends Session {
conn.deliver(packet);
}
catch (Exception e) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), e);
try {
conn.close();
}
......
......@@ -97,6 +97,7 @@ public class SocketConnection extends BasicConnection {
}
}
catch (Exception e) {
Log.error("Closing no longer valid connection", e);
close();
}
return !isClosed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment