do not grab that last image

This commit is contained in:
Hiro Protagonist 2017-03-29 14:40:15 +13:00
parent ff9f0b6ba5
commit d9df3b9cf2

View file

@ -57,13 +57,14 @@ void CameraManager::stopCapture() {
if ( !is_capturing )
return;
grabber->stopCapturing();
Error error = camera.StopCapture();
if ( error != PGRERROR_OK ) {
throw error;
return;
}
grabber->stopCapturing();
grabber->wait();