diff --git a/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseRapidClient.kt b/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseRapidClient.kt index 52d20daa3..9dee8b404 100644 --- a/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseRapidClient.kt +++ b/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseRapidClient.kt @@ -43,7 +43,10 @@ abstract class BaseRapidClient( private val engine: HttpClientEngine = _configurationProvider.okHttpClient?.let { OkHttp.create { - preconfigured = it + config { + preconfigured = it + dispatcher(it.dispatcher) + } } } ?: httpClientEngine diff --git a/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseXapClient.kt b/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseXapClient.kt index 19ef01d16..fb87dc254 100644 --- a/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseXapClient.kt +++ b/core/src/main/kotlin/com/expediagroup/sdk/core/client/BaseXapClient.kt @@ -43,7 +43,10 @@ abstract class BaseXapClient( private val engine: HttpClientEngine = _configurationProvider.okHttpClient?.let { OkHttp.create { - preconfigured = it + config { + preconfigured = it + dispatcher(it.dispatcher) + } } } ?: httpClientEngine