Set stopped synchronizedly

This commit is contained in:
Mygod
2020-08-23 11:41:21 -04:00
committed by GitHub
parent e6b2010b38
commit 2590ddaf48

View File

@@ -355,7 +355,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh
}
fun stop() {
stopped = true
synchronized(this) { stopped = true }
IpNeighbourMonitor.unregisterCallback(this)
FallbackUpstreamMonitor.unregisterCallback(fallbackUpstream)
UpstreamMonitor.unregisterCallback(upstream)