fix tests, fix error when failing to ping server

This commit is contained in:
Bixilon 2022-12-25 15:36:19 +01:00
parent 6cab366660
commit 41ee197216
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 1 additions and 2 deletions

View File

@ -150,7 +150,6 @@ object RenderLoader {
}
val time = measureNanoTime {
latch.dec()
latch.await()
state = RenderingStates.RUNNING
window.visible = true

View File

@ -75,7 +75,7 @@ class StatusConnection(
val addresses = this.addresses!!
val nextIndex = ++addressIndex
if (addresses.size >= nextIndex) {
if (addresses.size > nextIndex) {
val nextAddress = addresses[nextIndex]
Log.log(LogMessageType.NETWORK_RESOLVING) { "Could not connect to $address, trying next hostname: $nextAddress" }
realAddress = nextAddress