Added a semaphore lock in RocketChatService method getStarted()
preventing multiple threads inconsistently creating multiple websocket threads for the same host and thus avoiding connecting to server multiple times unnecessarily. Changed network changing fallback implemention to try to reconnect to automatically and force-invalidating the session token before doing this.
Showing
Please register or sign in to comment