Make sendPacket not synchronized

This commit is contained in:
Him188 2019-10-07 12:54:13 +08:00
parent 05c73017ff
commit 2b3deb24d3

View File

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