mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
don't cancel subtasks on task destructor
This commit is contained in:
parent
2a3c35f584
commit
4b4bc0eb9b
1 changed files with 6 additions and 3 deletions
|
@ -163,9 +163,12 @@ namespace geode {
|
|||
m_status = Status::Cancelled;
|
||||
// If this task carries extra data, call the extra data's
|
||||
// handling method
|
||||
if (m_extraData) {
|
||||
m_extraData->cancel();
|
||||
}
|
||||
// Actually: don't do this! This will cancel tasks even if
|
||||
// they have other listeners! The extra data's destructor
|
||||
// will handle cancellation if it has no other listeners!
|
||||
// if (m_extraData) {
|
||||
// m_extraData->cancel();
|
||||
// }
|
||||
// No need to actually post an event because this Task is
|
||||
// unlisteanable
|
||||
m_finalEventPosted = true;
|
||||
|
|
Loading…
Reference in a new issue