Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -17,9 +17,12 @@ · 16 unmodified lines | |||
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | ScreenshareScriptingInterface::ScreenshareScriptingInterface() { | 19 | ScreenshareScriptingInterface::ScreenshareScriptingInterface() { |
| 20 | |||
| 21 | }; | 20 | }; |
| 22 | 21 | ||
| 22 | ScreenshareScriptingInterface::~ScreenshareScriptingInterface() { | ||
| 23 | stopScreenshare(); | ||
| 24 | } | ||
| 25 | |||
| 23 | void ScreenshareScriptingInterface::startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey) { | 26 | void 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. |