Skip to content

Commit

Permalink
build: 1.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Sep 25, 2022
1 parent c5672b3 commit e260a4c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh"
version = "1.6.5"
version = "1.6.6"

repositories {
mavenLocal()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliCleaner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object BiliCleaner : CoroutineScope {

private const val HOUR = 60 * 60 * 1000L

private fun clean(type: CacheType, interval: Int, expires: Int) = launch(SupervisorJob()) {
private fun clean(type: CacheType, interval: Int, expires: Int) = launch {
if (interval <= 0) {
logger.info { "${type}缓存清理跳过" }
return@launch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import xyz.cssxsh.bilibili.api.*
import xyz.cssxsh.mirai.bilibili.data.*

object BiliHelperPlugin : KotlinPlugin(
JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.6.5") {
JvmPluginDescription(id = "xyz.cssxsh.mirai.plugin.bilibili-helper", version = "1.6.6") {
name("bilibili-helper")
author("cssxsh")

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/cssxsh/mirai/bilibili/BiliTasker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ sealed class AbstractTasker<T : Entry>(val name: String) : BiliTasker, Coroutine

protected abstract suspend fun listen(id: Long): Long

protected open fun addListener(id: Long) = launch(SupervisorJob()) {
protected open fun addListener(id: Long) = launch {
while (isActive && !empty(id)) {
val interval = try {
listen(id)
Expand Down

0 comments on commit e260a4c

Please sign in to comment.