Skip to content

Commit e457cdc

Browse files
committed
fix(macos): reuse cancellable periodic task owner
1 parent 3ae1442 commit e457cdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/macos/Sources/OpenClaw/TalkModeRuntime.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ actor TalkModeRuntime {
479479
}
480480

481481
private func silenceLoop() async {
482-
while self.isEnabled, (try? await Task.sleep(nanoseconds: 200_000_000)) != nil {
482+
while self.isEnabled, await SimpleTaskSupport.waitForNextOperation(interval: 0.2) {
483483
await self.checkSilence()
484484
}
485485
}

0 commit comments

Comments
 (0)