Skip to content

Commit

Permalink
ConferenceRoomBrowser: ignore not_implemented and service_unavailable…
Browse files Browse the repository at this point in the history
… error

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
  • Loading branch information
stokito committed Aug 15, 2024
1 parent 2267f9a commit bd34a83
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.StanzaError;
import org.jivesoftware.smackx.muc.MultiUserChatManager;
import org.jivesoftware.smackx.xdata.form.FillableForm;
import org.jivesoftware.smackx.bookmarks.BookmarkedConference;
Expand Down Expand Up @@ -549,8 +550,13 @@ public void run() {
Log.error("Error setting up GroupChatTable", e);
}
}
} catch (XMPPException.XMPPErrorException e) {
StanzaError.Condition condition = e.getStanzaError().getCondition();
if (condition != StanzaError.Condition.feature_not_implemented && condition != StanzaError.Condition.service_unavailable) {
Log.error("Unable to retrieve list of rooms from " + serviceName, e);
}
} catch (Exception e) {
Log.error("Unable to retrieve list of rooms.", e);
Log.error("Unable to retrieve list of rooms from " + serviceName, e);
}
stopLoadingImg();
}
Expand Down

0 comments on commit bd34a83

Please sign in to comment.