Skip to content

Commit

Permalink
Changed CLI timeout from 5 to 15 seconds to allow longer performing t…
Browse files Browse the repository at this point in the history
…asks to finish
  • Loading branch information
waydabber committed Jun 28, 2024
1 parent 85ac1d5 commit 5382155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betterdisplaycli.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class BetterDisplayNotificationIntegration {
if let encodedIntegrationNotificationRequestDataString = String(data: encodedIntegrationNotificationRequestData, encoding: .utf8) {
DistributedNotificationCenter.default().postNotificationName(.init(self.integrationNotificationRequestName), object: encodedIntegrationNotificationRequestDataString, userInfo: nil, deliverImmediately: true)
do {
try await Task.sleep(nanoseconds: UInt64(5 * 1_000_000_000))
try await Task.sleep(nanoseconds: UInt64(15 * 1_000_000_000))
} catch {}
fputs("Failed. Request timed out. BetterDisplay might not be running or is not configured to accept notifications.\n", stderr)
exit(EXIT_FAILURE)
Expand Down

0 comments on commit 5382155

Please sign in to comment.