This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-108
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-108 by this push:
new 5212865 Update NCCli.scala
5212865 is described below
commit 521286554a612e781edacd3d3be9386e4cada360
Author: Aaron Radzinski <[email protected]>
AuthorDate: Wed Oct 7 00:49:59 2020 -0700
Update NCCli.scala
---
.../src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index 86e0b00..ff05ec6 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -1041,6 +1041,9 @@ object NCCli extends App {
if (beacon.ph.destroy()) {
logln(s"Server (pid ${c(pid)}) has been stopped.")
+ // Attempt to delete beacon file right away.
+ new File(beacon.beaconPath).delete()
+
// Update state right away.
replState.isServerOnline = false
} else