Participants can now join during the warning period as well.

Added RaceDataSourceToXML.
RaceServer now create an XMLMessage when the race's RaceDataSource changes.
#story[1188]
This commit is contained in:
fjc40
2017-09-02 00:27:44 +12:00
parent 9156bde8af
commit ec58f0c847
18 changed files with 289 additions and 32 deletions
@@ -36,7 +36,8 @@ public class SourceIdAllocator {
*/
public synchronized int allocateSourceID() throws SourceIDAllocationException {
if (mockRace.getRaceStatusEnum() != RaceStatusEnum.PRESTART) {
if (!((mockRace.getRaceStatusEnum() == RaceStatusEnum.PRESTART)
|| (mockRace.getRaceStatusEnum() == RaceStatusEnum.WARNING))) {
throw new SourceIDAllocationException("Could not allocate a source ID. Can only allocate during pre-start period. It is currently: " + mockRace.getRaceStatusEnum());
}