I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b9a7a761 authored by zzz's avatar zzz
Browse files

dont replace app if a dup

parent a8ae2ce9
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ public class RouterAppManager implements ClientAppManager { ...@@ -48,7 +48,7 @@ public class RouterAppManager implements ClientAppManager {
public boolean addAndStart(ClientApp app, String[] args) { public boolean addAndStart(ClientApp app, String[] args) {
if (_log.shouldLog(Log.INFO)) if (_log.shouldLog(Log.INFO))
_log.info("Client " + app.getDisplayName() + " ADDED"); _log.info("Client " + app.getDisplayName() + " ADDED");
String[] old = _clients.put(app, args); String[] old = _clients.putIfAbsent(app, args);
if (old != null) if (old != null)
throw new IllegalArgumentException("already added"); throw new IllegalArgumentException("already added");
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment