Fix bugs in NetMarshalClient.

This commit is contained in:
Captain ALM 2023-05-20 15:49:54 +01:00
parent e3f294c090
commit 93b40d57a3
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -121,6 +121,8 @@ public class NetMarshalClient implements Closeable {
}
fragmentReceiver.clearRegistry();
fragmentSender.clearRegistry();
fragmentRMM.clear();
fragmentSMM.clear();
}, "thread_frag_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
fragmentFinishReceiveMonitorThread = new Thread(() -> {
while (running) {
@ -145,7 +147,7 @@ public class NetMarshalClient implements Closeable {
}
}
fragmentSender.clearLastIDFinished();
}, "thread_frag_fin_recv_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
}, "thread_frag_fin_send_monitor_" + remoteAddress.getHostAddress() + ":" + remotePort);
receiveThread = new Thread(() -> {
while (running) receiveThreadExecutedWithFragmentation();
fragmentReceiver.clearWaitingPackets();