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 | 19 | ScreenshareScriptingInterface::ScreenshareScriptingInterface() { |
| 20 | − | |
| 21 | 20 | }; |
| 22 | 21 | |
| 22 | +ScreenshareScriptingInterface::~ScreenshareScriptingInterface() { | |
| 23 | + stopScreenshare(); | |
| 24 | +} | |
| 25 | + | |
| 23 | 26 | void ScreenshareScriptingInterface::startScreenshare(QString displayName, QString userName, QString token, QString sessionID, QString apiKey) { |
| 24 | 27 | if (QThread::currentThread() != thread()) { |
| 25 | 28 | // We must start a new QProcess from the main thread. |