mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-23 16:47:41 +00:00
f5b416c63b
Summary: Most of the times the callback stores a reference to a variable in scope where the `Future` is in. When the scope is left the reference get's dangling. `CancelOrWait` is called in multiple places (mostly destructors) to ensure the callback isn't executed anymore. This patch deduplicates thous calls to `CancelOrWait`. Refs: #5874 Comments by: @Stan, @vladislavbelov Differential Revision: https://code.wildfiregames.com/D5208 This was SVN commit r28128.