diff --git a/src/corelib/kernel/qpermissions_wasm.cpp b/src/corelib/kernel/qpermissions_wasm.cpp index 175fc89dd0..7e885a4382 100644 --- a/src/corelib/kernel/qpermissions_wasm.cpp +++ b/src/corelib/kernel/qpermissions_wasm.cpp @@ -133,9 +133,6 @@ namespace qstdweb::PromiseCallbacks queryCallbacks; queryCallbacks.thenFunc = [device, cb](val mediaStream) { - val tracks = mediaStream.call("getTracks"); - if (!tracks.isUndefined() && !tracks.isNull()) - tracks[0].call("stop"); updatePermission(device, wapiGranted, cb); }; queryCallbacks.catchFunc = [device, cb](val error)