trivial fix for bug3249: add TrackedRaceImpl instance as course litsener to CourseImpl after deserialization in readObject()

This commit is contained in:
Axel Uhl committed 2015-08-20 16:57:44 +02:00
1 parent 97aeb5efa1
commit c5abc39220
1 file changed
+1
@@ -611,6 +611,7 @@ public abstract class TrackedRaceImpl extends TrackedRaceWithWindEssentials impl
*/
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException, PatchFailedException {
ois.defaultReadObject();
getRace().getCourse().addCourseListener(this);
raceStates = new WeakHashMap<>();
attachedRaceLogs = new ConcurrentHashMap<>();
attachedRaceExecutionOrderProviders = new ConcurrentHashMap<>();