mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-09 08:27:02 +08:00
Ignore AsynchronousCloseException
This commit is contained in:
parent
80a6d1bc23
commit
d7b8d8b4d2
@ -121,7 +121,9 @@ internal class TIMPCBotNetworkHandler internal constructor(coroutineContext: Cor
|
||||
close()
|
||||
return
|
||||
} catch (e: ReadPacketInternalException) {
|
||||
bot.logger.error("Socket channel read failed: ${e.message}")
|
||||
if (e.message != "java.nio.channels.AsynchronousCloseException") {
|
||||
bot.logger.error("Socket channel read failed: ${e.message}")
|
||||
}
|
||||
continue
|
||||
} catch (e: CancellationException) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user