Fix bugs in NetMarshalClient.
This commit is contained in:
parent
e3f294c090
commit
93b40d57a3
@ -121,6 +121,8 @@ public class NetMarshalClient implements Closeable {
|
|||||||
}
|
}
|
||||||
fragmentReceiver.clearRegistry();
|
fragmentReceiver.clearRegistry();
|
||||||
fragmentSender.clearRegistry();
|
fragmentSender.clearRegistry();
|
||||||
|
fragmentRMM.clear();
|
||||||
|
fragmentSMM.clear();
|
||||||
}, "thread_frag_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
|
}, "thread_frag_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
|
||||||
fragmentFinishReceiveMonitorThread = new Thread(() -> {
|
fragmentFinishReceiveMonitorThread = new Thread(() -> {
|
||||||
while (running) {
|
while (running) {
|
||||||
@ -145,7 +147,7 @@ public class NetMarshalClient implements Closeable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fragmentSender.clearLastIDFinished();
|
fragmentSender.clearLastIDFinished();
|
||||||
}, "thread_frag_fin_recv_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
|
}, "thread_frag_fin_send_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
|
||||||
receiveThread = new Thread(() -> {
|
receiveThread = new Thread(() -> {
|
||||||
while (running) receiveThreadExecutedWithFragmentation();
|
while (running) receiveThreadExecutedWithFragmentation();
|
||||||
fragmentReceiver.clearWaitingPackets();
|
fragmentReceiver.clearWaitingPackets();
|
||||||
|
Loading…
Reference in New Issue
Block a user