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
+6 -1
View File
@@ -22,7 +22,9 @@ class Session : public QObject
public:
explicit Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences = nullptr);
virtual ~Session();
// NB: This may not get destroyed for a long time! Don't put any cleanup here.
// Use Session::exec() or DeferredSessionCleanupTask instead.
virtual ~Session() {};
Q_INVOKABLE void exec(int displayOriginX, int displayOriginY);
@@ -60,6 +62,9 @@ signals:
void sessionFinished(int portTestResult);
// Emitted after sessionFinished() when the session is ready to be destroyed
void readyForDeletion();
private:
void execInternal();