send a response when deleting a definition

There's a protocol invariant to preserve here: If a live command sends a
response in any situation, it needs to send a response in all
situations. Otherwise the driver can't decide whether to wait or not.
This commit is contained in:
Kartik K. Agaram 2023-04-30 22:58:31 -07:00
parent bda9ceccf6
commit 05a9b0c168
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ function live.run(buf)
love.filesystem.remove(Live.filename[definition_name])
Live.filename[definition_name] = nil
end
live.send_to_driver('{}')
elseif cmd == 'GET' then
local definition_name = buf:match('^%s*%S+%s+(%S+)')
local val, _ = live.get_binding(definition_name)