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
1717
1818
1919 ScreenshareScriptingInterface::ScreenshareScriptingInterface() {
20−
2120 };
2221
22+ScreenshareScriptingInterface::~ScreenshareScriptingInterface() {
23+ stopScreenshare();
24+}
25+
2326 void ScreenshareScriptingInterface::startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey) {
2427 if (QThread::currentThread() != thread()) {
2528 // We must start a new QProcess from the main thread.