NetMarshalServer fix disconnect all bug.
This commit is contained in:
parent
ae73866bf1
commit
1f48071c11
@ -367,11 +367,10 @@ public class NetMarshalServer implements Closeable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void disconnectAllInternal() throws IOException {
|
private void disconnectAllInternal() throws IOException {
|
||||||
synchronized (slocksock) {
|
NetMarshalClient[] clients = getConnectedClients();
|
||||||
for (NetMarshalClient c : clients)
|
for (NetMarshalClient c : clients)
|
||||||
if (c.isRunning()) c.close();
|
if (c.isRunning()) c.close();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected NetMarshalClient generateClientSocket(Socket socketIn) {
|
protected NetMarshalClient generateClientSocket(Socket socketIn) {
|
||||||
return new NetMarshalClient(socketIn, factory, loader, fragmentationOptions);
|
return new NetMarshalClient(socketIn, factory, loader, fragmentationOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user