fix(dap): don't close empty stdout stderr handle (#149)
Add nil check to closure of stdout stderr handle
This commit is contained in:
parent
6e7410452f
commit
ee39b539b9
@ -349,9 +349,9 @@ M.run = function(...)
|
||||
end)
|
||||
end
|
||||
|
||||
stdout:close()
|
||||
stderr:close()
|
||||
handle:close()
|
||||
_ = stdout and stdout:close()
|
||||
_ = stderr and stderr:close()
|
||||
_ = handle and handle:close()
|
||||
stdout = nil
|
||||
stderr = nil
|
||||
handle = nil
|
||||
|
Loading…
Reference in New Issue
Block a user