summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-08-16 21:52:56 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 09:32:38 (GMT)
commitdce09fe24d55d67f60d7bc691e285897f1d64fc2 (patch)
treef064c11c7c25a647a73c42d01e2cb836ea601bb3 /Swift/Controllers
parent867a950d5b3eb1422051a57c2533509188014b1a (diff)
downloadswift-contrib-dce09fe24d55d67f60d7bc691e285897f1d64fc2.zip
swift-contrib-dce09fe24d55d67f60d7bc691e285897f1d64fc2.tar.bz2
Add error resilience on decoder side
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/ScreenSharing/ScreenSharingController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/ScreenSharing/ScreenSharingController.cpp b/Swift/Controllers/ScreenSharing/ScreenSharingController.cpp
index b932765..2e9a75d 100644
--- a/Swift/Controllers/ScreenSharing/ScreenSharingController.cpp
+++ b/Swift/Controllers/ScreenSharing/ScreenSharingController.cpp
@@ -123,7 +123,8 @@ void ScreenSharingController::handleStateChange(ScreenSharing::SCState state)
void ScreenSharingController::handleWindowStopRequest()
{
remoteScreenWindow->onStopRequest.disconnect(boost::bind(&ScreenSharingController::handleWindowStopRequest, this));
- screenSharing->stop();
+ if (screenSharing)
+ screenSharing->stop();
}
}