Skip to content

Commit

Permalink
Merge pull request #125 from boudicca-events/abl/daemon-threads
Browse files Browse the repository at this point in the history
change executor to run daemon threads
  • Loading branch information
kadhonn authored Oct 17, 2023
2 parents 66adb65 + 1e2cac8 commit aab86f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class EventCollectorScheduler(
private val eventCollectors: MutableList<EventCollector> = mutableListOf()
private val LOG = LoggerFactory.getLogger(this::class.java)
private var eventCollectorWebUi: EventCollectorWebUi? = null
private val executor = Executors.newCachedThreadPool()
private val executor = Executors.newCachedThreadPool { Thread(it).apply { isDaemon = true } }

fun addEventCollector(eventCollector: EventCollector): EventCollectorScheduler {
eventCollectors.add(eventCollector)
Expand Down

0 comments on commit aab86f1

Please sign in to comment.