From 2caa434e5703a953687bd921b452eb9fe2898d7d Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sun, 1 Oct 2017 15:11:19 +0800 Subject: [PATCH] fixed streaming --- .../kotlin/org/mariotaku/twidere/service/StreamingService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/service/StreamingService.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/service/StreamingService.kt index ea45d89ea..263984447 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/service/StreamingService.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/service/StreamingService.kt @@ -71,7 +71,7 @@ class StreamingService : BaseService() { super.onCreate() GeneralComponent.get(this).inject(this) threadPoolExecutor = Executors.newCachedThreadPool { runnable -> - val thread = Thread() + val thread = Thread(runnable) thread.priority = Thread.NORM_PRIORITY - 1 if (runnable is StreamingRunnable<*>) { thread.name = "twidere-streaming-${runnable.account.key}"