don't also send success on error

That's a recipe for race conditions.
This commit is contained in:
Kartik K. Agaram 2023-01-07 20:28:37 -08:00
parent 9bab2578bb
commit b2cbfc0b65

View File

@ -268,6 +268,7 @@ function live.run(buf)
Live.manifest = json.decode(love.filesystem.read(previous_manifest_filename))
-- throw an error
live.send_to_driver('ERROR '..tostring(err))
return
end
live.send_to_driver('ok')
end