From ce0e98c3dc92a9a4658ae1b84902901e59495f06 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sun, 30 Dec 2018 16:28:13 +0800 Subject: [PATCH] Add missing revert call Refine #51. --- mobile/src/main/java/be/mygod/vpnhotspot/net/Subrouting.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/Subrouting.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/Subrouting.kt index 85b0fe02..0c094f25 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/Subrouting.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/Subrouting.kt @@ -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 } }