altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

alt.Audio game freeze on destroy before init #2293

Open Avepy opened 3 months ago

Avepy commented 3 months ago

Description of the problem

If you create an Audio instance which uses webradio and call destroy() on it before the 'inited' callback is called, game temporarily freezes.

Reproduction steps

Create Audio instance, use webradio, call destroy() on this Audio before 'inited' callback is called.

Expected behaviour

Proper destruction of Audio instance without game freeze.

Additional context

No response

Operating system

Windows 11

Version

16.0.161

Crashdump ID

No response

Confirmation of issue's presence