Commit d7b8d8b4 authored by Him188's avatar Him188

Ignore AsynchronousCloseException

parent 80a6d1bc
...@@ -121,7 +121,9 @@ internal class TIMPCBotNetworkHandler internal constructor(coroutineContext: Cor ...@@ -121,7 +121,9 @@ internal class TIMPCBotNetworkHandler internal constructor(coroutineContext: Cor
close() close()
return return
} catch (e: ReadPacketInternalException) { } 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 continue
} catch (e: CancellationException) { } catch (e: CancellationException) {
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment