Commit 80962ba4 authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Fix race on save_profile because of eager tasks

Clive.save_profile_in_worker is running right after reactive
World._profile is updated because of lazy -> eager tasks change.

This means the current execution order is:
1. World.create_new_profile
2. Clive.save_profile_in_worker
3. Profile.skip_saving

instead of previous:
1. World.create_new_profile
2. Profile.skip_saving
3. Clive.save_profile_in_worker

This commit sets the skip_saving earlier.
parent 5afc4fef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment