From 8af2ec825985822dd24b89712e4688589abb534b Mon Sep 17 00:00:00 2001 From: Bruno Deanoz Date: Wed, 24 Jun 2026 12:56:39 +0200 Subject: [PATCH] fix Live Call: don't shutdown shared OkHttp executor on dispose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/src/main/java/dev/kaizen/app/live/LiveClient.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/dev/kaizen/app/live/LiveClient.kt b/app/src/main/java/dev/kaizen/app/live/LiveClient.kt index 7b7a725..b8d35af 100644 --- a/app/src/main/java/dev/kaizen/app/live/LiveClient.kt +++ b/app/src/main/java/dev/kaizen/app/live/LiveClient.kt @@ -115,7 +115,6 @@ class LiveClient( fun dispose() { active = false ws.getAndSet(null)?.cancel() - client.dispatcher.executorService.shutdown() } // ─── Reconnect ────────────────────────────────────────────────────────