Prevent incorrect state changes during vanity camera switchover.

This commit is contained in:
Cody Henthorne
2023-10-03 11:27:33 -04:00
parent 880ce18fd0
commit b74a431ac9
2 changed files with 10 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ public final class WebRtcVideoUtil {
ThreadUtil.runOnMainSync(() -> {
Camera camera = currentState.getVideoState().requireCamera();
camera.setCameraEventListener(null);
camera.setEnabled(false);
camera.dispose();