mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-27 18:42:18 +00:00
Merge pull request #5 from shakesoda/patch-2
Add a mechanism to stop a hotswap from occurring.
This commit is contained in:
@@ -210,7 +210,11 @@ function lurker.hotswapfile(f)
|
||||
if lurker.state == "error" then
|
||||
lurker.exiterrorstate()
|
||||
end
|
||||
lurker.preswap(f)
|
||||
if lurker.preswap(f) then
|
||||
lurker.print("Hotswap of '{1}' aborted by preswap'", {f})
|
||||
lurker.resetfile(f)
|
||||
return
|
||||
end
|
||||
local modname = lurker.modname(f)
|
||||
local t, ok, err = lume.time(lume.hotswap, modname)
|
||||
if ok then
|
||||
|
Reference in New Issue
Block a user