This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 773299bf3 fix race condition
773299bf3 is described below

commit 773299bf39b5f98ee1bcc131b1b23d906e37bac7
Author: Stefan Bodewig <[email protected]>
AuthorDate: Fri Jun 5 18:06:28 2026 +0200

    fix race condition
---
 src/tests/junit/org/apache/tools/ant/DummyMailServer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/junit/org/apache/tools/ant/DummyMailServer.java 
b/src/tests/junit/org/apache/tools/ant/DummyMailServer.java
index dc7dff64c..e9b1956e5 100644
--- a/src/tests/junit/org/apache/tools/ant/DummyMailServer.java
+++ b/src/tests/junit/org/apache/tools/ant/DummyMailServer.java
@@ -131,7 +131,7 @@ public class DummyMailServer implements Runnable, 
Callable<Void> {
         sb.append(retmsg);
     }
 
-    public void disconnect() {
+    public synchronized void disconnect() {
         this.stop = true;
         if (out != null) {
             try {

Reply via email to