We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e5e0d commit c02b819Copy full SHA for c02b819
src/processing/mode/android/Devices.java
@@ -298,8 +298,11 @@ private void addDevice(final Device device) {
298
try {
299
device.initialize();
300
if (devices.put(device.getId(), device) != null) {
301
- throw new IllegalStateException("Adding " + device
302
- + ", which already exists!");
+ // TODO: Silently add existing device, this may be indicating, like in
+ // deviceRemoved() below, different threads trying to add the same
303
+ // device. Does not seem to have any negative effect.
304
+// throw new IllegalStateException("Adding " + device
305
+// + ", which already exists!");
306
}
307
} catch (final Exception e) {
308
System.err.println("While initializing " + device.getId() + ": " + e);
0 commit comments