Add missing revert call

Refine #51.
This commit is contained in:
Mygod
2018-12-30 16:28:13 +08:00
parent 04f111c1a4
commit ce0e98c3dc

View File

@@ -71,6 +71,7 @@ class Subrouting(private val parent: Routing, priority: Int, val upstream: Strin
IpNeighbourMonitor.registerCallback(this)
} catch (e: Exception) {
close()
revert()
throw e
}
}