[Daemon] Improve daemon connection algorithm

Before this change, the logic was to find the most suitable daemon and try connecting to it in a loop, ignoring the fact that it could be dying. Now, instead of trying to connect to the daemon dying daemon in a loop, we will make only 1 attemp and then skip if it's already dying.
^KT-55322 In Progress
This commit is contained in:
Alexander.Likhachev
2023-11-21 09:35:37 +01:00
committed by Space Team
parent 44d6807aba
commit 8ceee3e8b9
4 changed files with 52 additions and 45 deletions
@@ -39,7 +39,7 @@ interface CompileService : Remote {
}
companion object {
val NO_SESSION: Int = 0
const val NO_SESSION: Int = 0
}
sealed class CallResult<out R> : Serializable {