Prevent crash

pull/185/head
M66B 4 years ago
parent 0a0651fc5d
commit c77ec0bd10

@ -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)
*/
}
}
}

@ -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)
+ */
}
}
}

Loading…
Cancel
Save