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 { ...@@ -129,7 +129,6 @@ public class RocketChatWebSocketThread extends HandlerThread {
@Override @Override
protected void onLooperPrepared() { protected void onLooperPrepared() {
super.onLooperPrepared(); super.onLooperPrepared();
forceInvalidateTokens();
} }
private void forceInvalidateTokens() { private void forceInvalidateTokens() {
...@@ -308,7 +307,6 @@ public class RocketChatWebSocketThread extends HandlerThread { ...@@ -308,7 +307,6 @@ public class RocketChatWebSocketThread extends HandlerThread {
if (reconnectSubscription.size() > 0) { if (reconnectSubscription.size() > 0) {
return; return;
} }
forceInvalidateTokens();
connectivityManager.notifyConnecting(hostname); connectivityManager.notifyConnecting(hostname);
reconnectSubscription.add( reconnectSubscription.add(
connectWithExponentialBackoff() 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