Commit 6f10ec41 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Never invalidate token on RocketChatWebSocketThread

parent 38a040a2
......@@ -129,7 +129,6 @@ public class RocketChatWebSocketThread extends HandlerThread {
@Override
protected void onLooperPrepared() {
super.onLooperPrepared();
forceInvalidateTokens();
}
private void forceInvalidateTokens() {
......@@ -308,7 +307,6 @@ public class RocketChatWebSocketThread extends HandlerThread {
if (reconnectSubscription.size() > 0) {
return;
}
forceInvalidateTokens();
connectivityManager.notifyConnecting(hostname);
reconnectSubscription.add(
connectWithExponentialBackoff()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment