You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
suspendfun Socket.readProtocolString(): String {
withMaxPacketBuffer {
val transformer =StringResponseTransformer()
val copied = copyTo(transformer, this, limit =4L)
val length = transformer.transform()
if (copied !=4L) {
throwRequestRejectedException("Unexpected string length: $length")
}
val messageLength = length.toIntOrNull(16) ?:throwRequestRejectedException("Unexpected string length: $length")
compatClear()
compatLimit(messageLength)
val read = readFully(this)
if (read != messageLength) throwRequestRejectedException("Incomplete string received")
returnString(array(), 0, read, Const.DEFAULT_TRANSPORT_ENCODING)
}
}
copied equals 0 when there is no device connected in the following env.
Android Debug Bridge version 1.0.41
Version 35.0.2-12147458
Running on Windows 10.0.19045
This is not a exception but it throws RequestRejectedException.
I think adam should declare -1 for copied in this situation.
The text was updated successfully, but these errors were encountered:
copied
equals 0 when there is no device connected in the following env.Android Debug Bridge version 1.0.41
Version 35.0.2-12147458
Running on Windows 10.0.19045
This is not a exception but it throws
RequestRejectedException
.I think adam should declare -1 for
copied
in this situation.The text was updated successfully, but these errors were encountered: