mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-15 03:25:01 -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;
|
m_status = Status::Cancelled;
|
||||||
// If this task carries extra data, call the extra data's
|
// If this task carries extra data, call the extra data's
|
||||||
// handling method
|
// handling method
|
||||||
if (m_extraData) {
|
// Actually: don't do this! This will cancel tasks even if
|
||||||
m_extraData->cancel();
|
// 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
|
// No need to actually post an event because this Task is
|
||||||
// unlisteanable
|
// unlisteanable
|
||||||
m_finalEventPosted = true;
|
m_finalEventPosted = true;
|
||||||
|
|
Loading…
Reference in a new issue