Prevent the listener from throwing an error when the scenario ends.

This commit is contained in:
Sacha Ligthert 2024-01-15 22:12:54 +01:00
parent 7471843374
commit b8df61dcc2

@ -28,7 +28,7 @@ end
function LuaExportStop() function LuaExportStop()
-- Terminate TCP connection -- Terminate TCP connection
if MySocket then if MySocket then
socket.try(MySocket:send("exit\n")) --socket.try(MySocket:send("exit\n"))
MySocket:close() MySocket:close()
end end
end end