Skip to content

Commit 3201290

Browse files
committed
fixup
1 parent 080528a commit 3201290

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Coder-Desktop/VPNLib/FileSync/FileSyncManagement.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public extension MutagenDaemon {
6161
}
6262

6363
func deleteSessions(ids: [String]) async throws(DaemonError) {
64-
// Terminating sessions does not require prompting
64+
// Terminating sessions does not require prompting, according to the
65+
// Mutagen CLI
6566
let (stream, promptID) = try await host(allowPrompts: false)
6667
defer { stream.cancel() }
6768
guard case .running = state else { return }
@@ -79,7 +80,9 @@ public extension MutagenDaemon {
7980
}
8081

8182
func pauseSessions(ids: [String]) async throws(DaemonError) {
82-
let (stream, promptID) = try await host()
83+
// Pausing sessions does not require prompting, according to the
84+
// Mutagen CLI
85+
let (stream, promptID) = try await host(allowPrompts: false)
8386
defer { stream.cancel() }
8487
guard case .running = state else { return }
8588
do {
@@ -96,7 +99,9 @@ public extension MutagenDaemon {
9699
}
97100

98101
func resumeSessions(ids: [String]) async throws(DaemonError) {
99-
let (stream, promptID) = try await host()
102+
// Resuming sessions does not require prompting, according to the
103+
// Mutagen CLI
104+
let (stream, promptID) = try await host(allowPrompts: false)
100105
defer { stream.cancel() }
101106
guard case .running = state else { return }
102107
do {

0 commit comments

Comments
 (0)