MultiFunPlayer
MultiFunPlayer copied to clipboard
Actions can't be scheduled from within an action
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?