Do not spawn another process to kill monitor
This commit is contained in:
@@ -103,8 +103,7 @@ abstract class IpMonitor : Runnable {
|
|||||||
|
|
||||||
fun destroy() {
|
fun destroy() {
|
||||||
destroyed = true
|
destroyed = true
|
||||||
val monitor = monitor
|
monitor?.destroy()
|
||||||
if (monitor != null) thread("${javaClass.simpleName}-killer") { monitor.destroy() }
|
|
||||||
pool?.shutdown()
|
pool?.shutdown()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user