Commit 93a74fd4 authored by ma's avatar ma
parents c613c756 529de2a9
......@@ -177,11 +177,11 @@ public class DeviceServerHandler extends SimpleChannelInboundHandler<Object> {
}
private void handleUploadError(SocketChannel channel, String remoteIp, int remotePort, DeviceProtocol protocol) {
byte[] bytes = safety.decodeExtendedPayload(protocol.getContent(), 0, protocol.getContent().length);
if (bytes == null) {
//byte[] bytes = safety.decodeExtendedPayload(protocol.getContent(), 0, protocol.getContent().length);
if (protocol.getContent() == null) {
return;
}
String decodeInfo = CommonUtil.bytesToStr(bytes);
String decodeInfo = CommonUtil.bytesToStr(protocol.getContent());
log.info("upload error byte to string:" + decodeInfo);
if (decodeInfo == null) {
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