Went back to single script for luadebug
This commit is contained in:
@ -34,7 +34,9 @@ function shell:run(target, name)
|
||||
coroutine.yield(0.016) -- 60FPS
|
||||
local sout = self.proc:read_stdout()
|
||||
local serr = self.proc:read_stderr()
|
||||
if sout == nil and serr == nil then
|
||||
if sout == nil or serr == nil then
|
||||
-- Make sure to read stderr for the last time
|
||||
if serr and serr~="" then self.on_stderr(serr) end
|
||||
local exitcode = self.proc:wait(process.WAIT_INFINITE)
|
||||
self.on_exit(exitcode)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user