Fix short UI hang when manually stopping the stream after losing connection with the host
This commit is contained in:
parent
6c0983d77c
commit
a6395b9025
4 changed files with 25 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue