diff --git a/src/hub.js b/src/hub.js index 4db71a66169ace6eba9a5f29722ea329d59184d2..f7b2717741233ac5556f752fbb33a0841b1865e6 100644 --- a/src/hub.js +++ b/src/hub.js @@ -260,10 +260,6 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) { debug: !!isDebug }); - if (isBotMode) { - entryManager.enterSceneWhenLoaded(new MediaStream(), false); - } - while (!scene.components["networked-scene"] || !scene.components["networked-scene"].data) await nextTick(); scene.components["networked-scene"] @@ -278,6 +274,10 @@ async function handleHubChannelJoined(entryManager, hubChannel, data) { hubChannel.channel.push("naf", payload); }; + + if (isBotMode) { + entryManager.enterSceneWhenLoaded(new MediaStream(), false); + } }) .catch(connectError => { // hacky until we get return codes