Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Commit

Permalink
small changes to when notify messages are shown
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Sep 21, 2011
1 parent 2d6051b commit c6d415e
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -351,6 +351,8 @@ private static int convertConnStateForDb(int state) {

final class ConnectionListenerAdapter implements ConnectionListener{
public void onStateChanged(final int state, final ImErrorInfo error) {


synchronized (this) {
if (state == ImConnection.LOGGED_IN
&& mConnectionState == ImConnection.LOGGING_OUT) {
Expand Down Expand Up @@ -407,10 +409,9 @@ public void onStateChanged(final int state, final ImErrorInfo error) {

mConnectionState = state;
} else if(state == ImConnection.SUSPENDED && error != null) {

// re-establish failed, schedule to retry
// TODO increase delay after retry failed.
mService.scheduleReconnect(5000);


}

Expand Down

0 comments on commit c6d415e

Please sign in to comment.