Author: cwiklik
Date: Fri Jan 18 15:52:47 2019
New Revision: 1851632

URL: http://svn.apache.org/viewvc?rev=1851632&view=rev
Log:
UIMA-5965 replace wait() with sleep() to synchronize method correctly

Modified:
    
uima/uima-ducc/trunk/uima-ducc-pullservice/src/main/java/org/apache/uima/ducc/ps/sd/task/DuccServiceTaskProtocolHandler.java

Modified: 
uima/uima-ducc/trunk/uima-ducc-pullservice/src/main/java/org/apache/uima/ducc/ps/sd/task/DuccServiceTaskProtocolHandler.java
URL: 
http://svn.apache.org/viewvc/uima/uima-ducc/trunk/uima-ducc-pullservice/src/main/java/org/apache/uima/ducc/ps/sd/task/DuccServiceTaskProtocolHandler.java?rev=1851632&r1=1851631&r2=1851632&view=diff
==============================================================================
--- 
uima/uima-ducc/trunk/uima-ducc-pullservice/src/main/java/org/apache/uima/ducc/ps/sd/task/DuccServiceTaskProtocolHandler.java
 (original)
+++ 
uima/uima-ducc/trunk/uima-ducc-pullservice/src/main/java/org/apache/uima/ducc/ps/sd/task/DuccServiceTaskProtocolHandler.java
 Fri Jan 18 15:52:47 2019
@@ -167,7 +167,7 @@ public class DuccServiceTaskProtocolHand
                        if ( task == null || task.isEmpty() ) {
                                if ( waitTime > 0 ) {
                                        try {
-                                               this.wait(waitTime);
+                                               
Thread.currentThread().sleep(waitTime);
                                        } catch(InterruptedException ee) {
                                                
Thread.currentThread().interrupt();
                                        }       


Reply via email to