mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
toward figuring out why relay communication stalls: log network
availability state changes.
This commit is contained in:
parent
3a32d3a17b
commit
34c70825b9
1 changed files with 6 additions and 0 deletions
|
@ -140,6 +140,8 @@ public class NetStateCache {
|
|||
NetworkInfo ni = (NetworkInfo)intent.
|
||||
getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
|
||||
NetworkInfo.State state = ni.getState();
|
||||
DbgUtils.logdf( "NetStateCache.PvtBroadcastReceiver.onReceive(state=%s)",
|
||||
state.toString() );
|
||||
|
||||
boolean netAvail;
|
||||
switch ( state ) {
|
||||
|
@ -193,6 +195,10 @@ public class NetStateCache {
|
|||
};
|
||||
mHandler.postDelayed( mNotifyLater, WAIT_STABLE_MILLIS );
|
||||
}
|
||||
} else {
|
||||
DbgUtils.logdf( "NetStateCache.PvtBroadcastReceiver.onReceive:"
|
||||
+ " no change; doing nothing; s_netAvail=%b",
|
||||
s_netAvail );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue