Dieser Commit ist enthalten in:
Ursprung
9493b251a6
Commit
5d30a9144a
@ -176,7 +176,6 @@ public class Subserver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void register() {
|
protected void register() {
|
||||||
synchronized (serverList) {
|
|
||||||
if(ProxyServer.getInstance().getServers().containsKey(serverName)) {
|
if(ProxyServer.getInstance().getServers().containsKey(serverName)) {
|
||||||
SecurityException e = new SecurityException("Server already registered: " + serverName);
|
SecurityException e = new SecurityException("Server already registered: " + serverName);
|
||||||
stop();
|
stop();
|
||||||
@ -184,6 +183,7 @@ public class Subserver {
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
synchronized (serverList) {
|
||||||
ProxyServer.getInstance().getServers().put(serverName, server);
|
ProxyServer.getInstance().getServers().put(serverName, server);
|
||||||
serverList.add(this);
|
serverList.add(this);
|
||||||
infoToServer.put(server, this);
|
infoToServer.put(server, this);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren