This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-41
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
new 830960e Pool stop method added.
830960e is described below
commit 830960e4badbac5e2c0ec36fcfde2014d0cedebd
Author: Sergey Kamov <[email protected]>
AuthorDate: Tue Aug 11 15:22:17 2020 +0300
Pool stop method added.
---
.../scala/org/apache/nlpcraft/examples/weather/WeatherModel.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/weather/WeatherModel.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/weather/WeatherModel.java
index d2faf3a..7bc6d3e 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/weather/WeatherModel.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/weather/WeatherModel.java
@@ -293,4 +293,9 @@ public class WeatherModel extends NCModelFileAdapter {
// Load model from external JSON file on classpath.
super("org/apache/nlpcraft/examples/weather/weather_model.json");
}
+
+ @Override
+ public void onDiscard() {
+ srv.stop();
+ }
}