Skip to content

Commit ff67405

Browse files
committedMar 7, 2025
Preemptively show that the service is stopping
More accurately describes the state of the service and more importantly unregisters the network callback which could have updates while we're trying to shut down
1 parent d09db80 commit ff67405

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎app/src/main/kotlin/dev/clombardo/dnsnet/vpn/AdVpnService.kt

+2
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ class AdVpnService : VpnService(), Handler.Callback, AdVpnCallback {
506506
private fun stopVpn() {
507507
logi("Stopping Service")
508508

509+
updateVpnStatus(VpnStatus.STOPPING)
510+
509511
vpnThread.stopThread()
510512

511513
logger.save()

0 commit comments

Comments
 (0)
Please sign in to comment.