@ -10,9 +10,6 @@ import (
var (
var (
// onVPNPrepared is notified when VpnService.prepare succeeds.
// onVPNPrepared is notified when VpnService.prepare succeeds.
onVPNPrepared = make ( chan struct { } , 1 )
onVPNPrepared = make ( chan struct { } , 1 )
// onVPNClosed is notified when VpnService.prepare fails, or when
// the a running VPN connection is closed.
onVPNClosed = make ( chan struct { } , 1 )
// onVPNRevoked is notified whenever the VPN service is revoked.
// onVPNRevoked is notified whenever the VPN service is revoked.
onVPNRevoked = make ( chan struct { } , 1 )
onVPNRevoked = make ( chan struct { } , 1 )
@ -51,13 +48,6 @@ func notifyVPNRevoked() {
}
}
}
}
func notifyVPNClosed ( ) {
select {
case onVPNClosed <- struct { } { } :
default :
}
}
var android struct {
var android struct {
// mu protects all fields of this structure. However, once a
// mu protects all fields of this structure. However, once a
// non-nil jvm is returned from javaVM, all the other fields may
// non-nil jvm is returned from javaVM, all the other fields may