[libbluray-devel] BDJThreadGroup: fix shutdown timeout

hpi1 git at videolan.org
Thu Mar 27 14:52:20 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Mar 27 14:53:56 2014 +0200| [25272004acc69322453eb85ddcd714cfe0e88b48] | committer: hpi1

BDJThreadGroup: fix shutdown timeout

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=25272004acc69322453eb85ddcd714cfe0e88b48
---

 src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
index 926dabc..b76a2e5 100644
--- a/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
+++ b/src/libbluray/bdj/java/org/videolan/BDJThreadGroup.java
@@ -53,7 +53,7 @@ public class BDJThreadGroup extends ThreadGroup {
 
     public boolean waitForShutdown(int timeout, int maxThreads) {
         long startTime = System.currentTimeMillis();
-        long endTime = startTime + 1000;
+        long endTime = startTime + timeout;
         while ((activeCount() > maxThreads) &&
                (System.currentTimeMillis() < endTime)) {
             try {



More information about the libbluray-devel mailing list