}
System.out.println(trace);
- Object rep = doRequest(action, command, args, rw, whitelist);
+ Object rep = null;
+ Exception oops = null;
+ try {
+ rep = doRequest(action, command, args, rw, whitelist);
+ } catch (Exception e) {
+ oops = e;
+ }
commands.put(id, command);
wls.put(id, wl);
rws.put(id, rw);
times.put(id, (new Date().getTime() - start));
+ if (oops != null) {
+ throw oops;
+ }
+
return rep;
}
forcePgDoneSent(pg);
} else {
- metas.add(Instance.getLibrary().getInfo((String) args[0]));
+ MetaData meta = Instance.getLibrary().getInfo((String) args[0]);
+ MetaData light;
+ if (meta.getCover() == null) {
+ light = meta;
+ } else {
+ light = meta.clone();
+ light.setCover(null);
+ }
+
+ metas.add(light);
}
if (!whitelist.isEmpty()) {