Caller already has an active LocalOnlyHotspot request is now unexpected

This commit is contained in:
Mygod
2019-01-01 12:27:49 +08:00
parent 68fface4b9
commit 7c72b9a235
2 changed files with 8 additions and 4 deletions

View File

@@ -257,7 +257,7 @@ class Routing(val downstream: String, ownerAddress: InterfaceAddress? = null) :
fun revert() {
stop()
TrafficRecorder.update() // record stats before exiting to prevent stats losing
clients.forEach { (_, subroute) -> subroute.close() }
clients.values.forEach { it.close() }
fallbackUpstream.subrouting?.transaction?.revert()
upstream.subrouting?.transaction?.revert()
transaction.revert()