mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-21 03:30:12 +00:00
fix for bug 3409: don't do a blocking wait for TrackedRace while responding to a REST request but return null instead
Change-Id: I470e68a557300ab14e82a7e7749fb9e9430fa381
This commit is contained in:
1 parent
9bb8a580c0
commit
e50e8480cf
1 file changed
+2
-2
+2
-2
@@ -76,8 +76,8 @@ public abstract class AbstractSailingServerResource {
|
||||
TrackedRace trackedRace = null;
|
||||
if (regatta != null && race != null) {
|
||||
DynamicTrackedRegatta trackedRegatta = getService().getTrackedRegatta(regatta);
|
||||
if(trackedRegatta != null) {
|
||||
trackedRace = trackedRegatta.getTrackedRace(race);
|
||||
if (trackedRegatta != null) {
|
||||
trackedRace = trackedRegatta.getExistingTrackedRace(race);
|
||||
}
|
||||
}
|
||||
return trackedRace;
|
||||
|
||||
Reference in new issue
Block a user