Resuming a stream after instantShutdown

Hi,

To use stream management, I can call connection.instantShutdown();

But how do I resume the same stream?

Doing a regular connect + login results in a new connection replacing the original one (hence potential message lost).

Working with:
SMACK 4.2.2
eJabberd 17.12

Thanks,

Smack should attempt to resume a stream on login().

Hi, thanks but doing login after instantShutdown is not acceptable by SMACK:

org.jivesoftware.smack.SmackException$NotConnectedException: Client is not, or no longer, connected. Did you call connect() before login()?

No, I meant a subsequent connect(); login(); after instantShutdown() should try to resume a previous stream/session.

My bad, indeed using connect and login again resume the stream ok after instantShutdown(). Thanks.