Debug wake/sleep signals

This commit is contained in:
Davide De Rosa 2019-12-12 15:05:21 +01:00
parent 8ae92d29db
commit 2687dcf36e
1 changed files with 11 additions and 0 deletions

View File

@ -297,6 +297,17 @@ open class OpenVPNTunnelProvider: NEPacketTunnelProvider {
}
completionHandler?(response)
}
// MARK: Wake/Sleep (debugging placeholders)
open override func wake() {
log.verbose("Wake signal received")
}
open override func sleep(completionHandler: @escaping () -> Void) {
log.verbose("Sleep signal received")
completionHandler()
}
// MARK: Connection (tunnel queue)