Skip to content

Commit

Permalink
don't set deamon mode on thread to avoid losing requests on exit
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Fehre <[email protected]>
  • Loading branch information
sideshowcoder committed Feb 5, 2025
1 parent 8c36616 commit a609ca6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/dev/openfeature/sdk/EventSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class EventSupport {
private final HandlerStore globalHandlerStore = new HandlerStore();
private final ExecutorService taskExecutor = Executors.newCachedThreadPool(runnable -> {
final Thread thread = new Thread(runnable);
thread.setDaemon(true);
return thread;
});

Expand Down

0 comments on commit a609ca6

Please sign in to comment.