@@ -98,7 +98,7 @@ class ProxyVpnService : VpnService(), IProtectSocket {
9898
9999 override fun onRevoke () {
100100 super .onRevoke()
101- app!! .trackEvent(" VPN" , " vpn-revoked" )
101+ app.trackEvent(" VPN" , " vpn-revoked" )
102102 Log .i(TAG , " onRevoke called" )
103103 stopVpn()
104104 }
@@ -151,8 +151,8 @@ class ProxyVpnService : VpnService(), IProtectSocket {
151151
152152 if (this .vpnInterface != null ) return false // The VPN is already running, somehow? Do nothing
153153
154- app!! .pauseEvents() // Try not to send events while the VPN is active, it's unnecessary noise
155- app!! .trackEvent(" VPN" , " vpn-started" )
154+ app.pauseEvents() // Try not to send events while the VPN is active, it's unnecessary noise
155+ app.trackEvent(" VPN" , " vpn-started" )
156156 val vpnInterface = Builder ()
157157 .addAddress(VPN_IP_ADDRESS , 32 )
158158 .addRoute(ALL_ROUTES , 0 )
@@ -225,8 +225,8 @@ class ProxyVpnService : VpnService(), IProtectSocket {
225225 Log .i(TAG , " VPN stopping.." )
226226
227227 if (vpnRunnable != null ) {
228- app!! .trackEvent(" VPN" , " vpn-stopped" )
229- app!! .resumeEvents()
228+ app.trackEvent(" VPN" , " vpn-stopped" )
229+ app.resumeEvents()
230230
231231 vpnRunnable!! .stop()
232232 vpnRunnable = null
0 commit comments