Skip to content

Commit

Permalink
SASL: get rid of smack3 login fail checker
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Jun 15, 2020
1 parent d8f2934 commit e27e415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/yaxim/androidclient/service/XMPPService.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.yaxim.androidclient.util.StatusMode;

import org.jivesoftware.smack.packet.Message.Type;
import org.jivesoftware.smack.sasl.SASLErrorException;

import android.app.AlarmManager;
import android.app.Notification;
Expand Down Expand Up @@ -501,7 +502,7 @@ private void connectionFailed(String reason) {
mSmackable.requestConnectionState(ConnectionState.RECONNECT_NETWORK);

} else if (mConnectionDemanded.get()) {
if (reason.contains("SASLError using")) {
if (mSmackable.getLastLoginError() instanceof SASLErrorException) {
mConnectionDemanded.set(false);
mConfig.jid_configured = false;
mSmackable.requestConnectionState(ConnectionState.OFFLINE);
Expand Down

0 comments on commit e27e415

Please sign in to comment.