intiface / intiface-central

Intiface Central (Buttplug Frontend) Application for Desktop and Mobile
Other
125 stars 17 forks source link

GUI can stall if server start is requested after server is already started #71

Open qdot opened 1 year ago

qdot commented 1 year ago

GUI will stall due to being stuck in an intermittent state if the server tries to start after it's already started. The Rust code returns an error here, but it's thrown as part of the stream handling in flutter-rust-bridge and is therefore uncatchable.

The only way this can happen is to turn the server on/off very quickly at the moment, so a bit of an edge case.

blackspherefollower commented 1 year ago

@qdot I've seen this on Android a couple of times by backgrounding Intiface when it's running, then opening the app again from the launcher (the service is still running but the front-end doesn't seem to reconnect to it). This was easiest to reproduce in the Quest, but I'm certain I've seen it happen on my Pixel 6 too.