core: The AVM2 version of this test wants a spurious status event
This commit is contained in:
parent
ab21b5b106
commit
d2f806a901
|
@ -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")],
|
||||||
|
|
Loading…
Reference in New Issue