Fix DNS route not cleaned

This commit is contained in:
Mygod
2019-02-04 23:31:26 +08:00
parent 8132b2766d
commit 89559103bf

View File

@@ -298,6 +298,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh
Timber.i("Stopped routing for $downstream by $caller")
TrafficRecorder.update() // record stats before exiting to prevent stats losing
clients.values.forEach { it.close() }
currentDns?.transaction?.revert()
fallbackUpstream.subrouting?.transaction?.revert()
upstream.subrouting?.transaction?.revert()
transaction.revert()