From fe5fd110db1659853ffa2df32bcef38cd15e1acd Mon Sep 17 00:00:00 2001 From: Vlad Kolotov Date: Wed, 27 Sep 2017 20:32:57 +1300 Subject: Removing System.exit as it causes to exit application containers (like OSGi and Spring). The library could be "side loaded", e.g. via temp folder etc. Signed-off-by: Vlad Kolotov --- java/BluetoothObject.java | 1 - 1 file changed, 1 deletion(-) diff --git a/java/BluetoothObject.java b/java/BluetoothObject.java index d2a4d056..2afb8c3c 100644 --- a/java/BluetoothObject.java +++ b/java/BluetoothObject.java @@ -36,7 +36,6 @@ public abstract class BluetoothObject implements Cloneable,AutoCloseable System.loadLibrary("javatinyb"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n" + e); - System.exit(-1); } } -- cgit v1.2.3