diff --git a/Tool/Sources/CodeiumService/CodeiumExtension.swift b/Tool/Sources/CodeiumService/CodeiumExtension.swift index b8aa0643b..8a159ffb6 100644 --- a/Tool/Sources/CodeiumService/CodeiumExtension.swift +++ b/Tool/Sources/CodeiumService/CodeiumExtension.swift @@ -189,7 +189,8 @@ actor CodeiumServiceLifeKeeper { } var isAlive: Bool { - weakObjects.allSatisfy { $0.isAlive } + if weakObjects.isEmpty { return false } + return weakObjects.allSatisfy { $0.isAlive } } }