Cleaned up and polished session flow

- Sessions can now be restarted if they error
- Terminology is much easier to follow in the plugin
- More change cases are handled correctly
This commit is contained in:
Lucien Greathouse
2019-01-03 15:23:23 -08:00
parent a74c11aef5
commit e6c2f1c15d
2 changed files with 72 additions and 32 deletions

View File

@@ -67,8 +67,11 @@ local function main()
end
Logging.info("Started new session.")
currentSession = Session.new()
currentSession = Session.new(function()
Logging.info("Session terminated.")
currentSession = nil
end)
end)
end
main()
main()