Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "io.newm"
version = "2.6.0-SNAPSHOT"
version = "2.6.1-SNAPSHOT"

java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/io/newm/kogmios/ClientImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ import java.io.IOException
import java.math.BigInteger
import java.util.concurrent.ConcurrentHashMap
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.cancellation.CancellationException
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.DelicateCoroutinesApi
Expand Down Expand Up @@ -335,6 +336,9 @@ internal class ClientImpl(
result.complete(false)
}
}
} catch (e: CancellationException) {
// rethrow to continue coroutine cancellation chain
throw e
} catch (e: Throwable) {
log.error("Connection Error!", e)
e.printStackTrace()
Expand Down
Loading