core: Actually spawn the loader future for the netstream

This commit is contained in:
David Wendt 2023-04-17 21:55:25 -04:00 committed by kmeisthax
parent 7e986bd90d
commit 0e207cce8d
1 changed files with 3 additions and 1 deletions

View File

@ -208,9 +208,11 @@ impl<'gc> NetStream<'gc> {
pub fn play(self, context: &mut UpdateContext<'_, 'gc>, name: Option<AvmString<'gc>>) { pub fn play(self, context: &mut UpdateContext<'_, 'gc>, name: Option<AvmString<'gc>>) {
if let Some(name) = name { if let Some(name) = name {
let request = Request::get(name.to_string()); let request = Request::get(name.to_string());
context let future = context
.load_manager .load_manager
.load_netstream(context.player.clone(), self, request); .load_netstream(context.player.clone(), self, request);
context.navigator.spawn_future(future);
} }
StreamManager::ensure_playing(context, self); StreamManager::ensure_playing(context, self);