core: The AVM2 version of this test wants a spurious status event

This commit is contained in:
David Wendt 2023-04-22 19:29:11 -04:00 committed by kmeisthax
parent ab21b5b106
commit d2f806a901
1 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,12 @@ impl<'gc> NetStream<'gc> {
pub fn load_buffer(self, context: &mut UpdateContext<'_, 'gc>, data: &mut Vec<u8>) { pub fn load_buffer(self, context: &mut UpdateContext<'_, 'gc>, data: &mut Vec<u8>) {
self.0.write(context.gc_context).buffer.append(data); self.0.write(context.gc_context).buffer.append(data);
if context.is_action_script_3() {
// Don't ask why but the AS3 test has a spurious status event in it
self.trigger_status_event(context, &[]);
}
self.trigger_status_event( self.trigger_status_event(
context, context,
&[("code", "NetStream.Buffer.Full"), ("level", "status")], &[("code", "NetStream.Buffer.Full"), ("level", "status")],