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:47:44 UTC

[incubator-nlpcraft] 01/01: NLPCRAFT-49: Probe hangs on stop.

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

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

commit b9b63fcad2a1231b5345d365c9f9e50debdc517a
Author: smakov <sm...@apache.org>
AuthorDate: Thu May 14 18:47:32 2020 +0300

    NLPCRAFT-49: Probe hangs on stop.
---
 src/main/scala/org/apache/nlpcraft/common/util/NCUtils.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 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..a1344a4 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 = {