Bug 1708718 Comment 5 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

I managed to reproduce this by forcing [an error here](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3039) when the [first `reinit`](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3312) is called. As a result, the `CoreStreamData::default_output_listener` is `Some` when the [second `reinit`](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3327) is called. I am not sure when this can happen. I need to hard code an error to reproduce this.
I managed to reproduce this by forcing [an error here](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3039) how and when the [first `reinit`](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3312) is called. As a result, the `CoreStreamData::default_output_listener` is `Some` when the [second `reinit`](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3327) is called. I am not sure when this can happen. I need to hard code an error to reproduce this.
I managed to reproduce this by forcing [an error here](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3039) how and when the [first `setup`](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3312) is called. As a result, the `CoreStreamData::default_output_listener` is `Some` when the [second `setup`](https://searchfox.org/mozilla-central/rev/01adc17c9a41d9f7975de170acc78634bd743609/third_party/rust/cubeb-coreaudio/src/backend/mod.rs#3327) is called. I am not sure when this can happen. I need to hard code an error to reproduce this.

Back to Bug 1708718 Comment 5