fix(dashboard): fix race condition when sending data while closing

This commit is contained in:
Folke Lemaitre 2024-11-18 23:41:00 +01:00
parent 840c0aaa05
commit 4188446f86
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -913,7 +913,7 @@ function M.sections.terminal(opts)
if recording:is_active() then
table.insert(output, data)
end
send(data)
pcall(send, data)
end,
on_exit = function(_, code)
if not recording:is_active() or stopped then