RestComm / restcomm-android-sdk

Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications
http://www.restcomm.com/
GNU Affero General Public License v3.0
153 stars 109 forks source link

What's the way to retry initialization? #850

Open WolandPL opened 6 years ago

WolandPL commented 6 years ago

What should I do to retry initialization after e.g. REGISTER timeout? If I try to call RCDevice intiialize() I got info that it is already initialized. If I try to call release() on it, to start initialization from scratch, I got

java.lang.IllegalStateException: The state machine is already terminated. at org.squirrelframework.foundation.fsm.impl.AbstractStateMachine.internalFire(AbstractStateMachine.java:238)

What's your recommendation for the scenario when there's timeout after REGISTER and I want to retry?