History

Guard against a crash in stopScreenshare()

Zach Fox committed 7 years ago

Commit d8026301 parent d5c4b0c1 file · +1 −1Browse files

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

Unified · Split

interface/src/scripting/ScreenshareScriptingInterface.cpp+1−1
@@ -79,7 +79,7 @@ void ScreenshareScriptingInterface::stopScreenshare() { · 78 unmodified lines
79 return;79 return;
80 }80 }
81 81
82 if (_screenshareProcess->state() != QProcess::NotRunning) {82 if (_screenshareProcess && _screenshareProcess->state() != QProcess::NotRunning) {
83 _screenshareProcess->terminate();83 _screenshareProcess->terminate();
84 }84 }
85}85}