Internal ping every two minutes

Stephen Paul Weber created

It's not clear why this ping was introduced, but waking up the CPU and
doing work every 10 seconds seems excessive, so let's see if this helps
with the recent reports of high battery usage.

Change summary

src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/services/XmppConnectionService.java 🔗

@@ -1519,7 +1519,7 @@ public class XmppConnectionService extends Service {
         toggleForegroundService();
         setupPhoneStateListener();
         rescanStickers();
-        internalPingExecutor.scheduleAtFixedRate(this::manageAccountConnectionStatesInternal,10,10,TimeUnit.SECONDS);
+        internalPingExecutor.scheduleAtFixedRate(this::manageAccountConnectionStatesInternal,120,120,TimeUnit.SECONDS);
     }