mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-27 22:08:37 +00:00
refactor(macos): dedupe UI, pairing, and runtime helpers
This commit is contained in:
@@ -14,8 +14,7 @@ final class VoiceWakeGlobalSettingsSync {
|
||||
}
|
||||
|
||||
func start() {
|
||||
guard self.task == nil else { return }
|
||||
self.task = Task { [weak self] in
|
||||
SimpleTaskSupport.start(task: &self.task) { [weak self] in
|
||||
guard let self else { return }
|
||||
while !Task.isCancelled {
|
||||
do {
|
||||
@@ -39,8 +38,7 @@ final class VoiceWakeGlobalSettingsSync {
|
||||
}
|
||||
|
||||
func stop() {
|
||||
self.task?.cancel()
|
||||
self.task = nil
|
||||
SimpleTaskSupport.stop(task: &self.task)
|
||||
}
|
||||
|
||||
private func refreshFromGateway() async {
|
||||
|
||||
Reference in New Issue
Block a user