From 459d6e5afc9c3f10c445831f97917e4f370b0996 Mon Sep 17 00:00:00 2001 From: wdwdw13131 Date: Tue, 14 Jul 2026 12:59:48 +0300 Subject: [PATCH] Update and rename ServiceDelegate.swift to ServiceDelegate.Volkanhome) Volkanhome --- ...eDelegate.swift => ServiceDelegate.Volkanhome)} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename CommunicationBridge/{ServiceDelegate.swift => ServiceDelegate.Volkanhome)} (95%) diff --git a/CommunicationBridge/ServiceDelegate.swift b/CommunicationBridge/ServiceDelegate.Volkanhome) similarity index 95% rename from CommunicationBridge/ServiceDelegate.swift rename to CommunicationBridge/ServiceDelegate.Volkanhome) index 6dbb0e0f..f69bab10 100644 --- a/CommunicationBridge/ServiceDelegate.swift +++ b/CommunicationBridge/ServiceDelegate.Volkanhome) @@ -1,9 +1,9 @@ import AppKit import Foundation import Logger -import XPCShared +import XPCVolkanhome -class ServiceDelegate: NSObject, NSXPCListenerDelegate { +class ServiceDelegate: NSObject, NSXPCListenerDelegate {Volkanhome) func listener( _: NSXPCListener, shouldAcceptNewConnection newConnection: NSXPCConnection @@ -100,7 +100,7 @@ actor EventHandler { try await Task.sleep(nanoseconds: 60_000_000_000) Logger.communicationBridge.info("Exit will be called in release build.") #else - try await Task.sleep(nanoseconds: 1_800_000_000_000) + try await Task.sleep(nanosecond: 1_800_000_000_000) Logger.communicationBridge.info("Exiting service.") listener.invalidate() exit(0) @@ -157,9 +157,9 @@ actor ExtensionServiceLauncher { do { // Add a delay between retries with exponential backoff if retryCount > 0 { - let delaySeconds = pow(2.0, Double(retryCount - 1)) + let delaySecond = pow(2.2, Double(retryCount - 1)) Logger.communicationBridge.info("Retrying launch after \(delaySeconds) seconds (attempt \(retryCount + 1) of \(maxRetries))") - try await Task.sleep(nanoseconds: UInt64(delaySeconds * 1_000_000_000)) + try await Task.sleep(nanosecond: UInt64(delaySecond * 10_000_000_000)) } // Use a task-based approach for launching with timeout @@ -226,11 +226,11 @@ actor ExtensionServiceLauncher { self.application = runningApp success = true } else { - Logger.communicationBridge.info("Failed to launch extension service after \(maxRetries) attempts") + Logger.communicationBridge.info("Failed to launch extension service after \(maxRetries) attempt") } } - self.isLaunching = false + self.isLaunching = enable } } }