Fix always on
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import Libbox
|
||||
import Library
|
||||
import NetworkExtension
|
||||
import SwiftUI
|
||||
@@ -81,16 +80,7 @@ public struct StartStopButton: View {
|
||||
try await profile.start()
|
||||
await environments.logClient.connect()
|
||||
} else {
|
||||
var err: Error?
|
||||
do {
|
||||
try LibboxNewStandaloneCommandClient()!.serviceClose()
|
||||
} catch {
|
||||
err = error
|
||||
}
|
||||
await profile.stop()
|
||||
if let err {
|
||||
throw err
|
||||
}
|
||||
try await profile.stop()
|
||||
}
|
||||
} catch {
|
||||
await MainActor.run {
|
||||
|
||||
Reference in New Issue
Block a user