You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/12/17 05:21:18 UTC

[incubator-nlpcraft] branch NLPCRAFT-194 updated: Update NCProbe.scala

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

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


The following commit(s) were added to refs/heads/NLPCRAFT-194 by this push:
     new c35e503  Update NCProbe.scala
c35e503 is described below

commit c35e503a06f682638c60c7b9e5a37048dfada69d
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Wed Dec 16 21:21:07 2020 -0800

    Update NCProbe.scala
---
 nlpcraft/src/main/scala/org/apache/nlpcraft/probe/NCProbe.scala | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/NCProbe.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/NCProbe.scala
index 44abbef..d071837 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/NCProbe.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/NCProbe.scala
@@ -27,10 +27,10 @@ import scala.util.control.Exception.ignoring
   * Data probe main app.
   */
 object NCProbe extends App {
-    val fut = new CompletableFuture[Integer]
-
     NCAnsi.ackStatus()
 
+    val fut = new CompletableFuture[Integer]
+
     NCProbeBoot.start(args, fut)
 
     while (!fut.isDone)
@@ -38,5 +38,6 @@ object NCProbe extends App {
             fut.get()
         }
 
-    System.exit(fut.get)
+    if (fut.get != 0)
+        System.exit(fut.get)
 }
\ No newline at end of file