onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r1466156 - /incubator/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpTask.java
Date Tue, 09 Apr 2013 17:51:40 GMT
Author: ash2k
Date: Tue Apr  9 17:51:40 2013
New Revision: 1466156

URL: http://svn.apache.org/r1466156
Log:
Simplify interruption check. No functional changes

Modified:
    incubator/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpTask.java

Modified: incubator/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpTask.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpTask.java?rev=1466156&r1=1466155&r2=1466156&view=diff
==============================================================================
--- incubator/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpTask.java
(original)
+++ incubator/onami/trunk/lifecycle/warmup/src/main/java/org/apache/onami/lifecycle/warmup/WarmUpTask.java
Tue Apr  9 17:51:40 2013
@@ -92,12 +92,10 @@ class WarmUpTask
         {
             for ( Stageable stageable : stageables )
             {
-                if ( Thread.interrupted() )
+                if ( Thread.currentThread().isInterrupted() )
                 {
                     // Warmup is taking too long - thread was interrupted.
                     // Skip other stageables.
-                    // Maintain interruption state to let other tasks know about it.
-                    Thread.currentThread().interrupt();
                     break;
                 }
                 stageable.stage( stageHandler );



Mime
View raw message