mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-05 16:55:03 -05:00
removed unnecessary / inacurate debug logging
This commit is contained in:
parent
402e5363d1
commit
0f6f6adca0
@ -499,8 +499,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
long pingTimeoutIn = (lastSent + Config.PING_TIMEOUT * 1000) - SystemClock.elapsedRealtime();
|
long pingTimeoutIn = (lastSent + Config.PING_TIMEOUT * 1000) - SystemClock.elapsedRealtime();
|
||||||
if (lastSent > lastReceived) {
|
if (lastSent > lastReceived) {
|
||||||
if (pingTimeoutIn < 0) {
|
if (pingTimeoutIn < 0) {
|
||||||
long age = (SystemClock.elapsedRealtime() - account.getXmppConnection().getLastConnect()) / 1000;
|
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": ping timeout");
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": ping timeout. connection age was: "+age+"s");
|
|
||||||
this.reconnectAccount(account, true);
|
this.reconnectAccount(account, true);
|
||||||
} else {
|
} else {
|
||||||
int secs = (int) (pingTimeoutIn / 1000);
|
int secs = (int) (pingTimeoutIn / 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user