mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
fix(security): properly cleanup MediaStream on camera access failure
- Add stopStreamTracks() call in catch block to release any partially acquired media tracks when camera access fails - Prevents privacy and resource leaks from orphaned media streams
This commit is contained in:
@@ -634,8 +634,8 @@ async function startCameraPreview() {
|
||||
)
|
||||
}
|
||||
|
||||
stopStreamTracks()
|
||||
isShowingPreview.value = false
|
||||
isCameraOn.value = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user