mirror of
https://gitee.com/BDWare/router-backend
synced 2026-01-30 08:09:25 +00:00
fix: receive file bugs
This commit is contained in:
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user