From 3ad8aba2d584609a9d1c0194b11f63e16db21715 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 14 Oct 2021 22:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/HttpReadAloudService.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index c480ccec0..f6efeef59 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -139,6 +139,8 @@ class HttpReadAloudService : BaseReadAloudService(), playAudio(fis.fd) } } + } catch (e: CancellationException) { + //停止朗读,不处理 } catch (e: SocketTimeoutException) { removeSpeakCacheFile(fileName) toastOnUi("tts接口超时,尝试重新获取")