You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/12/24 11:25:14 UTC

[maven-surefire] branch cli updated: CountdownCloaseable

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

tibordigana pushed a commit to branch cli
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/cli by this push:
     new dbb4be7  CountdownCloaseable
dbb4be7 is described below

commit dbb4be70f6a21b9c9396d2ecc1bda51b1d849515
Author: tibordigana <ti...@apache.org>
AuthorDate: Tue Dec 24 12:25:06 2019 +0100

    CountdownCloaseable
---
 .../apache/maven/surefire/extensions/util/CountdownCloseable.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CountdownCloseable.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CountdownCloseable.java
index 3c8ac8e..9818ec9 100644
--- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CountdownCloseable.java
+++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CountdownCloseable.java
@@ -62,6 +62,9 @@ public final class CountdownCloseable
      */
     public synchronized void awaitClosed() throws InterruptedException
     {
-        wait();
+        if ( countdown > 0 )
+        {
+            wait();
+        }
     }
 }