Skip to content

Actions can't be scheduled from within an action #196

@Yoooi0

Description

@Yoooi0
RegisterAction("Test", () =>
{
    InvokeAction(...);
});

When "Test" is scheduled the calling thread is blocked until it is finished but it will never finish because "InvokeAction" will schedule an action that will wait for the previous one ("Test") to finish, blocking the thread forever. This can be fixed by invoking directly.
It might be possible to detect that an action is being scheduled from within some other action and just invoke directly in that case.
Remove scheduling and always invoke directly?

Metadata

Metadata

Assignees

Labels

issueApplication has unwanted/unexpected behaviour

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions