History

Stop screenshare process on interface shutdown

Zach Fox committed 7 years ago

Commit 47b3fdb1 parent d8026303 files · +6 −1Browse files

Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

interface/src/scripting/ScreenshareScriptingInterface.cpp+4−1
@@ -17,9 +17,12 @@ · 16 unmodified lines
17 17
18 18
19ScreenshareScriptingInterface::ScreenshareScriptingInterface() {19ScreenshareScriptingInterface::ScreenshareScriptingInterface() {
20
21};20};
22 21
22ScreenshareScriptingInterface::~ScreenshareScriptingInterface() {
23 stopScreenshare();
24}
25
23void ScreenshareScriptingInterface::startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey) {26void ScreenshareScriptingInterface::startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey) {
24 if (QThread::currentThread() != thread()) {27 if (QThread::currentThread() != thread()) {
25 // We must start a new QProcess from the main thread.28 // We must start a new QProcess from the main thread.