rendajs / Renda

A modern rendering engine for the web.
https://rendajs.org
MIT License
10 stars 4 forks source link

Connecting to existing remote project is broken #824

Closed jespertheend closed 9 months ago

jespertheend commented 9 months ago

It seems like the promise from this.openProject is not resolved until the connection is made, causing the call to waitForConnection to never get fired.

jespertheend commented 9 months ago

And now I get Assertion failed, studio connections manager callback fired after it has been destructed

jespertheend commented 9 months ago

The error seems to be a side effect of a similar root cause. The DiscoveryManager is destructed because once you try to connect to a remote project, the assetmanager doesn't exist yet. As a result, no new DiscoveryManager is created that initiates a connection to the websocket.