mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Fix short UI hang when manually stopping the stream after losing connection with the host
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user