forked from I2P_Developers/i2p.i2p
dont replace app if a dup
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user