You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/12/18 11:53:18 UTC

[plc4x] branch next-gen-core updated: - Made the example terminate after finishing the requests.

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

cdutz pushed a commit to branch next-gen-core
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/next-gen-core by this push:
     new df0d7cb  - Made the example terminate after finishing the requests.
df0d7cb is described below

commit df0d7cbf3541966d50a8b1cc331fe6e1228951a9
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Dec 18 12:53:10 2019 +0100

    - Made the example terminate after finishing the requests.
---
 .../main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plc4j/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java b/plc4j/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java
index b2232f9..b5adc24 100644
--- a/plc4j/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java
+++ b/plc4j/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java
@@ -91,6 +91,7 @@ public class HelloPlc4x {
         } catch (Exception e) {
             e.printStackTrace();
         }
+        System.exit(0);
     }
 
     private static void printResponse(PlcReadResponse response) {