Commit 2b3deb24 authored by Him188's avatar Him188

Make sendPacket not synchronized

parent 05c73017
...@@ -209,7 +209,6 @@ internal class TIMBotNetworkHandler(private val bot: Bot) : BotNetworkHandler { ...@@ -209,7 +209,6 @@ internal class TIMBotNetworkHandler(private val bot: Bot) : BotNetworkHandler {
} }
} }
@Synchronized
override suspend fun sendPacket(packet: ClientPacket) { override suspend fun sendPacket(packet: ClientPacket) {
checkNotNull(socket) { "network closed" } checkNotNull(socket) { "network closed" }
if (socket!!.isClosed) { if (socket!!.isClosed) {
......
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