mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Disconnect on BYE
This commit is contained in:
@@ -558,9 +558,12 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||
Response[] responses = protocol.command("SEARCH", arg);
|
||||
if (responses.length == 0)
|
||||
throw new ProtocolException("No response");
|
||||
if (!responses[responses.length - 1].isOK())
|
||||
if (!responses[responses.length - 1].isOK()) {
|
||||
if (responses[responses.length - 1].isBYE())
|
||||
protocol.disconnect();
|
||||
throw new ProtocolException(
|
||||
context.getString(R.string.title_service_auth, responses[responses.length - 1]));
|
||||
}
|
||||
|
||||
List<Integer> msgnums = new ArrayList<>();
|
||||
for (Response response : responses)
|
||||
|
||||
Reference in New Issue
Block a user