1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Prevent crash

This commit is contained in:
M66B 2020-09-21 11:04:35 +02:00
parent 0a0651fc5d
commit c77ec0bd10
2 changed files with 35 additions and 0 deletions

View file

@ -154,6 +154,19 @@ class EventQueue implements Runnable {
}
} catch (InterruptedException e) {
// just die
} catch (Error ex) {
/*
java.lang.Error: java.lang.InterruptedException
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1173)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1248)
at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:344)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:439)
at javax.mail.EventQueue.run(SourceFile:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
*/
}
}
}

View file

@ -357,3 +357,25 @@ diff -rupN /home/marcel/JavaMail/mail/src/main/java/com/sun/mail/imap/protocol/I
/**
* The AUTHENTICATE command with AUTH=PLAIN authentication scheme.
--- /home/marcel/JavaMail/mail/src/main/java/javax/mail/EventQueue.java 2020-08-14 11:44:05.413359065 +0200
+++ app/src/main/java/javax/mail/EventQueue.java 2020-09-21 11:04:19.648547947 +0200
@@ -154,6 +154,19 @@ class EventQueue implements Runnable {
}
} catch (InterruptedException e) {
// just die
+ } catch (Error ex) {
+ /*
+ java.lang.Error: java.lang.InterruptedException
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1173)
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
+ at java.lang.Thread.run(Thread.java:919)
+ Caused by: java.lang.InterruptedException
+ at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1248)
+ at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:344)
+ at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:439)
+ at javax.mail.EventQueue.run(SourceFile:140)
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
+ */
}
}
}