simplified derivation of device mappings from mapping events

This commit is contained in:
Fredrik Teschke committed 2014-04-24 01:12:55 +02:00
1 parent 7508b7ccee
commit 83610c20bb
6 files changed
+17 -175

No files matched your search

@@ -4360,7 +4360,9 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
List<Serializable> eventIds) throws NotRevokableException {
RaceLog raceLog = getRaceLog(leaderboardName, raceColumnName, fleetName);
for (Serializable idToRevoke : eventIds) {
raceLog.lockForRead();
RaceLogEvent event = raceLog.getEventById(idToRevoke);
raceLog.unlockAfterRead();
if (event instanceof Revokable) {
raceLog.revokeEvent(getService().getServerAuthor(), (Revokable) event);
}