Commit 529de2a9 authored by AfirSraftGarrier's avatar AfirSraftGarrier

上报错误方法改变

parent 9fd060ef
......@@ -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