From 032fc8626e4496bb12e654932443d8851a218461 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 22 Oct 2013 14:43:48 +0000 Subject: [PATCH] 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 --- .../smackx/bytestreams/ibb/InBandBytestreamManager.java | 6 ++++++ .../smackx/bytestreams/socks5/Socks5BytestreamManager.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java b/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java index ef5253154..158d6785d 100644 --- a/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java +++ b/source/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java @@ -102,10 +102,16 @@ public class InBandBytestreamManager implements BytestreamManager { // register shutdown listener connection.addConnectionListener(new AbstractConnectionListener() { + @Override public void connectionClosed() { manager.disableService(); } + @Override + public void connectionClosedOnError(Exception e) { + manager.disableService(); + } + }); } diff --git a/source/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamManager.java b/source/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamManager.java index 286041519..e477222b9 100644 --- a/source/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamManager.java +++ b/source/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamManager.java @@ -96,10 +96,16 @@ public final class Socks5BytestreamManager implements BytestreamManager { // register shutdown listener connection.addConnectionListener(new AbstractConnectionListener() { + @Override public void connectionClosed() { manager.disableService(); } + @Override + public void connectionClosedOnError(Exception e) { + manager.disableService(); + } + }); }