Skip to content

Lua scripts' callbacks aren't always cleared #4442

@YoshiRulz

Description

@YoshiRulz

<CasualPokePlayer> in particular, callbacks which are set in a callback

// When would a file be null?
// When a script is loaded with a callback, but no infinite loop so it closes
// Then that callback proceeds to register more callbacks
// In these situations, we will generate a thread for this new callback on the fly here
// Scenarios like this suggest that a thread being managed by a LuaFile is a bad idea,
// and we should refactor

--TODO write repro script

see also #3036

Metadata

Metadata

Assignees

No one assigned

    Labels

    Tool: Lua ConsoleRelating to the Lua Console (not EmuHawk's Lua API)re: Lua API/scriptingRelating to EmuHawk's Lua API (not the Lua Console)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions