ably-java
ably-java copied to clipboard
attach when transport closing
RealtimeReauthTest has a 2s delay after doing a reauthorise. Without it the test fails with an unexpected exception. ConnectionManager.onAuthUpdated() tells the transport to close, so when the test immediately attempts an attach() we are in a state where the transport cannot send anything, but ConnectionManager thinks it is still connected. That causes an exception.
Thanks, good spot