In src/main/java/org/java_websocket/util/NamedThreadFactory.java, when a new Thread gets created, it should be marked as a background thread.
thread.setDaemon(true);
I'm using this library in a context where I have no control over shutdown (I get no callback or notification) and this thread is preventing proper shutdown.
In
src/main/java/org/java_websocket/util/NamedThreadFactory.java
, when a newThread
gets created, it should be marked as a background thread.thread.setDaemon(true);
I'm using this library in a context where I have no control over shutdown (I get no callback or notification) and this thread is preventing proper shutdown.