MultiFunPlayer icon indicating copy to clipboard operation
MultiFunPlayer copied to clipboard

Actions can't be scheduled from within an action

Open Yoooi0 opened this issue 1 year ago • 0 comments

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?

Yoooi0 avatar Jan 08 '25 23:01 Yoooi0