This PR fixes a crash in the BarcodeScanner module.
If the user didn't agree to the camera usage, the captureSessionQueue would have been left in suspended state forever. As it is illegal to release a DispatchQueue in suspended state, the barcode scanner would crash on deinitialization.
This PR fixes the issue by resuming the captureSessionQueue just before the deinitialization.
This PR fixes a crash in the BarcodeScanner module.
If the user didn't agree to the camera usage, the
captureSessionQueue
would have been left in suspended state forever. As it is illegal to release aDispatchQueue
in suspended state, the barcode scanner would crash on deinitialization.This PR fixes the issue by resuming the
captureSessionQueue
just before the deinitialization.