1
0

Fix error handler

Dieser Commit ist enthalten in:
Lixfel 2024-01-28 14:57:44 +01:00
Ursprung 9493b251a6
Commit 5d30a9144a

Datei anzeigen

@ -176,14 +176,14 @@ public class Subserver {
}
protected void register() {
synchronized (serverList) {
if(ProxyServer.getInstance().getServers().containsKey(serverName)) {
SecurityException e = new SecurityException("Server already registered: " + serverName);
stop();
failureCallback.accept(e);
throw e;
}
if(ProxyServer.getInstance().getServers().containsKey(serverName)) {
SecurityException e = new SecurityException("Server already registered: " + serverName);
stop();
failureCallback.accept(e);
throw e;
}
synchronized (serverList) {
ProxyServer.getInstance().getServers().put(serverName, server);
serverList.add(this);
infoToServer.put(server, this);