Skip to content

Commit 8a89445

Browse files
committed
Fix isAlive is incorrect
1 parent ae8d75f commit 8a89445

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tool/Sources/CodeiumService/CodeiumExtension.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ actor CodeiumServiceLifeKeeper {
189189
}
190190

191191
var isAlive: Bool {
192-
weakObjects.allSatisfy { $0.isAlive }
192+
if weakObjects.isEmpty { return false }
193+
return weakObjects.allSatisfy { $0.isAlive }
193194
}
194195
}
195196

0 commit comments

Comments
 (0)