1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00
Smack/smack-core/src
Florian Schmaus 8736e3e434 [core] Remove erroneous "assert !connected" in connect()
Connections like XMPPTCPConnection may still reported connected, if
they are, for example disconnected but resumable. This is already
accounted for in throwAlreadyConnectedExceptionIfAppropriate(), hence
the assert is unnecessary and leads to false negatives for
XMPPTCPConnection.

For the sake of completeness, the right condition, assuming
XMPPTCPConnection is used, for the assert would be:

	assert !connected || disconnectedButResumable;
2021-11-05 10:19:26 +01:00
..
integration-test Mark code from the old integration-test dir as migration candidates 2020-04-09 15:14:09 +02:00
main [core] Remove erroneous "assert !connected" in connect() 2021-11-05 10:19:26 +01:00
test [core] Fix XmlEnvironment namespace: Use default namespace (not element's) 2021-01-25 14:24:55 +01:00
testFixtures/java/org/jivesoftware/smack Add org.jivesoftware.smack.Smack with getVersion() and ensureInitialized() 2020-11-09 08:46:57 +01:00