tag patch fixed-upstream
thanks

Hi,

> davmail.connection  - DISCONNECT - 127.0.0.1:41156  60s Exception in thread
> "Shutdown" java.lang.IllegalMonitorStateException: current thread is not
> owner
>  60s 2023-06-24 23:58:12,579 INFO  [Shutdown] davmail  - DavMail gateway
> stopped
>  60s  at java.base/java.lang.Object.notifyAll(Native Method)
>  60s  at davmail.DavGateway$1.run(DavGateway.java:100)
>  60s autopkgtest [23:58:12]: test binary-starts

This does not happen a lot and I cannot reproduce.

This seems to be fixed upstream in:
https://github.com/mguessan/davmail/commit/853854fda70f7731af2caff7504d8b7bc7653db4

So I'll upload a new revision with this fix cherry-picked and hope for the best.

Thanks,

Alex

>From 853854fda70f7731af2caff7504d8b7bc7653db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micka=C3=ABl=20Guessant?= <mgues...@free.fr>
Date: Mon, 20 Mar 2023 08:55:01 +0000
Subject: [PATCH] Fix from audit

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3424 
3d1905a2-6b24-0410-a738-b14d5a86fcbd
---
 src/java/davmail/DavGateway.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/java/davmail/DavGateway.java b/src/java/davmail/DavGateway.java
index 34d81ab3..f7a17995 100644
--- a/src/java/davmail/DavGateway.java
+++ b/src/java/davmail/DavGateway.java
@@ -96,7 +96,9 @@ public static void main(String[] args) {
                 public void run() {
                     DavGatewayTray.debug(new 
BundleMessage("LOG_GATEWAY_INTERRUPTED"));
                     DavGateway.stop();
-                    LOCK.notifyAll();
+                    synchronized (LOCK) {
+                        LOCK.notifyAll();
+                    }
                 }
             });
 

Reply via email to