mirror of
https://github.com/corda/corda.git
synced 2025-04-14 22:46:57 +00:00
Minor: Unit testing: InMemoryNetwork.Node.stop, running = false after thread shutdown not before.
This commit is contained in:
parent
55989a8e92
commit
58e84fbeca
@ -16,7 +16,6 @@ import core.ThreadBox
|
||||
import core.crypto.sha256
|
||||
import core.node.TimestamperNodeService
|
||||
import core.utilities.loggerFor
|
||||
import java.security.KeyPair
|
||||
import java.time.Instant
|
||||
import java.util.*
|
||||
import java.util.concurrent.Executor
|
||||
@ -188,11 +187,11 @@ class InMemoryNetwork {
|
||||
}
|
||||
|
||||
override fun stop() {
|
||||
running = false
|
||||
if (backgroundThread != null) {
|
||||
backgroundThread.interrupt()
|
||||
backgroundThread.join()
|
||||
}
|
||||
running = false
|
||||
netNodeHasShutdown(handle)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user