Fix captcha read

This commit is contained in:
Him188 2020-02-14 18:19:55 +08:00
parent ed66d0bffd
commit 1f6d81314a

View File

@ -385,7 +385,7 @@ internal class WtLogin {
val buffer = IoBuffer.Pool.borrow()
imageData.readFully(buffer)
imageData.readAvailable(buffer)
return LoginPacketResponse.Captcha.Picture(
data = buffer,
sign = sign