Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix isAlive is incorrect
  • Loading branch information
intitni committed Jul 18, 2024
commit 8a89445b1ed99402c71bce7bb61728ae835db1f0
3 changes: 2 additions & 1 deletion Tool/Sources/CodeiumService/CodeiumExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ actor CodeiumServiceLifeKeeper {
}

var isAlive: Bool {
weakObjects.allSatisfy { $0.isAlive }
if weakObjects.isEmpty { return false }
return weakObjects.allSatisfy { $0.isAlive }
}
}