From 8c1a611afc19cdcef3b8095d2ea875f6fc091943 Mon Sep 17 00:00:00 2001 From: freeflyk <65976525+freeflyk@users.noreply.github.com> Date: Mon, 13 May 2024 23:17:21 +0200 Subject: [PATCH] Fixed login retry when credentials are wrong. --- .../Services/NotificationWebsocketService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/polar/nextcloudservices/Services/NotificationWebsocketService.java b/app/src/main/java/com/polar/nextcloudservices/Services/NotificationWebsocketService.java index 6faf05b..b88e1de 100644 --- a/app/src/main/java/com/polar/nextcloudservices/Services/NotificationWebsocketService.java +++ b/app/src/main/java/com/polar/nextcloudservices/Services/NotificationWebsocketService.java @@ -135,12 +135,8 @@ public void onWebsocketConnected() { public String getStatus() { if(!mConnectionController.checkConnection(this)){ return "Disconnected: no suitable network found"; - }else if(mNotificationWebsocket == null && mWsThread.isAlive()){ + }else if(mNotificationWebsocket == null){ return "Disconnected: can not connect to websocket. Are login details correct? Is notify_push installed on server?"; - }else if(mNotificationWebsocket == null && !mWsThread.isAlive()){ - mWsThread = new Thread(this::listenForever); - mWsThread.start(); - return "Disconnected: trying to reconnect to websocket."; } return mStatusController.getStatusString(); }