From d88a2888b9a03ac65c6b85c706ec265429bc757e Mon Sep 17 00:00:00 2001 From: jxtps Date: Wed, 18 Aug 2021 09:51:17 -0700 Subject: [PATCH] Mark DestructorThread as a daemon Mark DestructorThread as a daemon so the JVM can exit. --- java/com/facebook/jni/DestructorThread.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/com/facebook/jni/DestructorThread.java b/java/com/facebook/jni/DestructorThread.java index 05d6ded..18301d8 100644 --- a/java/com/facebook/jni/DestructorThread.java +++ b/java/com/facebook/jni/DestructorThread.java @@ -90,6 +90,7 @@ public void run() { } }; + sThread.setDaemon(true); sThread.start(); }