Suppress invalid message sequence number error

pull/199/head
M66B 4 years ago
parent b919280820
commit fbfa16eb73

@ -1409,6 +1409,12 @@ public class Log {
"failed to create new store connection".equals(ex.getMessage()))) "failed to create new store connection".equals(ex.getMessage())))
return null; return null;
if (ex instanceof MessagingException &&
ex.getMessage() != null &&
ex.getMessage().contains("invalid message sequence number"))
// invalid message sequence number: message is probably expunged
return null;
if (ex instanceof MessagingException && if (ex instanceof MessagingException &&
ex.getCause() instanceof ConnectionException && ex.getCause() instanceof ConnectionException &&
ex.getCause().getMessage() != null && ex.getCause().getMessage() != null &&

Loading…
Cancel
Save