Smack/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb
Florian Schmaus ed02bcf0d4 [ibb] Ensure InBandBytestreamManager is a singleton
InBandBytestreamManager followed an unusual pattern: Within the
connectionTermianted() callback, it would remove itself from the
'managers' map. This allowed for multiple instances of an
InBandBytestreamManager to exist for the same connection, causing all
kinds of issues.

This fixes the issue by changing InBandBytestreamManager to use the
Smack-idiomatic pattern used by managers.

We also do no longer reset the listeners if the connection is
termianted, as listeners (and handlers) typically persist until they
are explicitly removed by the user.

As positive side-effect, the number of indeterministic unit-tests,
caused by using Thread.sleep(), is reduced. The executor service in
InitiationListener was also removed, because the IQ handler is already
called asynchronously to the connections main loop.

Thanks to Anno van Vliet for reporting this.
2020-07-03 22:01:15 +02:00
..
packet Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
provider Replace XPP3 by XmlPullParser interface wrapping StAX and XPP3 2019-05-06 22:10:50 +02:00
CloseListener.java Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
DataListener.java Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
InBandBytestreamListener.java Enable trailing whitespace checkstyle check 2018-05-09 23:26:39 +02:00
InBandBytestreamManager.java [ibb] Ensure InBandBytestreamManager is a singleton 2020-07-03 22:01:15 +02:00
InBandBytestreamRequest.java Enable werror for javadoc and fix javadoc issues 2019-08-30 12:08:30 +02:00
InBandBytestreamSession.java Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
InitiationListener.java [ibb] Ensure InBandBytestreamManager is a singleton 2020-07-03 22:01:15 +02:00
package-info.java Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00