Fix short UI hang when manually stopping the stream after losing connection with the host

This commit is contained in:
Cameron Gutman
2022-03-06 13:11:36 -06:00
parent 6c0983d77c
commit a6395b9025
4 changed files with 25 additions and 13 deletions
+4
View File
@@ -103,7 +103,10 @@ Item {
streamSegueErrorDialog.open()
}
}
}
function sessionReadyForDeletion()
{
// Garbage collect the Session object since it's pretty heavyweight
// and keeps other libraries (like SDL_TTF) around until it is deleted.
session = null
@@ -130,6 +133,7 @@ Item {
session.displayLaunchWarning.connect(displayLaunchWarning)
session.quitStarting.connect(quitStarting)
session.sessionFinished.connect(sessionFinished)
session.readyForDeletion.connect(sessionReadyForDeletion)
// Kick off the stream
spinnerTimer.start()