mirror of
https://gitee.com/BDWare/router-backend
synced 2025-01-25 01:04:05 +00:00
fix: receive file bugs
This commit is contained in:
parent
2ee97ee704
commit
c489be8b4a
@ -82,7 +82,7 @@ public class NodeCenterFrameHandler extends SimpleChannelInboundHandler<Object>
|
||||
try {
|
||||
map =
|
||||
JsonParser.parseReader(
|
||||
new InputStreamReader(new ByteBufInputStream((ByteBuf) frame)))
|
||||
new InputStreamReader(new ByteBufInputStream((ByteBuf) frame)))
|
||||
.getAsJsonObject();
|
||||
|
||||
} catch (Exception e) {
|
||||
@ -136,7 +136,7 @@ public class NodeCenterFrameHandler extends SimpleChannelInboundHandler<Object>
|
||||
}
|
||||
}
|
||||
|
||||
public void sendMsg(String json) {
|
||||
public synchronized void sendMsg(String json) {
|
||||
if (ctx != null) {
|
||||
// System.out.println("[NodeCenterFrame send] TID:" + Thread.currentThread().getId() + "
|
||||
// isOpen:"
|
||||
|
Loading…
Reference in New Issue
Block a user