1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

SMACK-442 Manager should also handle connectionClosedOnError()

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_2@13784 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Florian Schmaus 2013-10-22 14:43:48 +00:00 committed by flow
parent aa5906f1f1
commit 032fc8626e
2 changed files with 12 additions and 0 deletions

View file

@ -102,10 +102,16 @@ public class InBandBytestreamManager implements BytestreamManager {
// register shutdown listener // register shutdown listener
connection.addConnectionListener(new AbstractConnectionListener() { connection.addConnectionListener(new AbstractConnectionListener() {
@Override
public void connectionClosed() { public void connectionClosed() {
manager.disableService(); manager.disableService();
} }
@Override
public void connectionClosedOnError(Exception e) {
manager.disableService();
}
}); });
} }

View file

@ -96,10 +96,16 @@ public final class Socks5BytestreamManager implements BytestreamManager {
// register shutdown listener // register shutdown listener
connection.addConnectionListener(new AbstractConnectionListener() { connection.addConnectionListener(new AbstractConnectionListener() {
@Override
public void connectionClosed() { public void connectionClosed() {
manager.disableService(); manager.disableService();
} }
@Override
public void connectionClosedOnError(Exception e) {
manager.disableService();
}
}); });
} }