Skip to content

Commit 18858f7

Browse files
committed
fix bug
1 parent 1a7d78e commit 18858f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/me/kuku/telegram/config/TelegramConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ val api: String
189189
}
190190
try {
191191
val response = OkHttpUtils.get(tempApi!!)
192+
response.close()
192193
if (response.code == 200) return tempApi!!
193194
else error(apiErrorMsg)
194195
} catch (e: Exception) {

0 commit comments

Comments
 (0)