You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by sm...@apache.org on 2020/05/14 15:05:58 UTC

[incubator-nlpcraft] branch github-actions updated: WIP on Github Actions setup (fix probe hang stop).

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

smakov pushed a commit to branch github-actions
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/github-actions by this push:
     new 2e1e2f7  WIP on Github Actions setup (fix probe hang stop).
2e1e2f7 is described below

commit 2e1e2f709abdd7e41eb2e14e8f3f2e0a791954c5
Author: smakov <sm...@apache.org>
AuthorDate: Thu May 14 18:05:42 2020 +0300

    WIP on Github Actions setup (fix probe hang stop).
---
 src/main/scala/org/apache/nlpcraft/common/util/NCUtils.scala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/scala/org/apache/nlpcraft/common/util/NCUtils.scala b/src/main/scala/org/apache/nlpcraft/common/util/NCUtils.scala
index f32a8a3..cf83ec0 100644
--- a/src/main/scala/org/apache/nlpcraft/common/util/NCUtils.scala
+++ b/src/main/scala/org/apache/nlpcraft/common/util/NCUtils.scala
@@ -952,9 +952,9 @@ object NCUtils extends LazyLogging {
             override def isInterrupted: Boolean = super.isInterrupted || stopped
             
             override def interrupt(): Unit = {
-                super.interrupt()
-                
                 stopped = true
+
+                super.interrupt()
             }
             
             override def run(): Unit = {
@@ -1631,4 +1631,4 @@ object NCUtils extends LazyLogging {
       */
     def calcSparsity(idx: Seq[Int]): Int =
         idx.zipWithIndex.tail.map {  case (v, i) ⇒ Math.abs(v - idx(i - 1)) }.sum - idx.length + 1
-}
\ No newline at end of file
+}