fix Live Call: don't shutdown shared OkHttp executor on dispose

LiveClient.dispose() called client.dispatcher.executorService.shutdown()
which killed the shared KaizenApi.baseClient dispatcher. After one failed
call, ALL subsequent OkHttp requests (including normal API calls) got
"executor rejected". Removed the shutdown — cancel() on the WS is enough.
This commit is contained in:
Bruno Deanoz 2026-06-24 12:56:39 +02:00
parent 46a48b6008
commit 8af2ec8259

View file

@ -115,7 +115,6 @@ class LiveClient(
fun dispose() {
active = false
ws.getAndSet(null)?.cancel()
client.dispatcher.executorService.shutdown()
}
// ─── Reconnect ────────────────────────────────────────────────────────