Skip to content

Commit

Permalink
Fixed login retry when credentials are wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeflyk committed May 13, 2024
1 parent b64b713 commit 8c1a611
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8c1a611

Please sign in to comment.