fixed streaming

This commit is contained in:
Mariotaku Lee 2017-10-01 15:11:19 +08:00
parent 56cd8ad30a
commit 2caa434e57
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 1 additions and 1 deletions

View File

@ -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}"