Skip to content

Commit

Permalink
Fix an issue that could cause the app to get stuck offline
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Sep 21, 2015
1 parent 9d2900d commit 3d59ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/irccloud/android/NetworkConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public void onReceive(Context context, Intent intent) {
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo ni = cm.getActiveNetworkInfo();

if (ni != null && ni.isConnected() && (state == STATE_DISCONNECTED || state == STATE_DISCONNECTING) && session != null && handlers.size() > 0 && ready) {
if (ni != null && ni.isConnected() && (state == STATE_DISCONNECTED || state == STATE_DISCONNECTING) && session != null && handlers.size() > 0) {
if (idleTimerTask != null)
idleTimerTask.cancel();
connect();
Expand Down

0 comments on commit 3d59ce2

Please sign in to comment.