- Notifications
You must be signed in to change notification settings - Fork3
Description
When attempting to implement theNEProvider overrides for starting & stopping the tunnel on device sleep and wake, I noticed that sending theStopRequest
to the.dylib
causes the entire NE process toSIGABRT
. We'll need to fix this if we'd like the VPN to start and stop itself on sleep and wake.
For example, this can be reproduced by modifying the sleep handler:
override func sleep(completionHandler: @escaping -> Void) { let completionhandler = CompletionWrapper(completionHandler) Task { try await manager?.stopVPN() completionHandler() }}
Then starting the VPN, and putting the device to sleep. After waking, you'll see an internal error indicating a crash of the NE.
We currently only send theStopRequest
when shutting down the tunnel, so this crash can't happen with normal use of the app.
Metadata
Metadata
Assignees
Labels
No labels