mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
let GUI render
This commit is contained in:
@@ -61,7 +61,8 @@ pub async fn run() -> Result<()> {
|
||||
|
||||
let tunnel_manager = app_state.tunnel_manager.clone();
|
||||
tokio::spawn(async move {
|
||||
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
|
||||
// Give time for GUI to render before doing autostart
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;
|
||||
tunnel_manager.check_auto_start().await;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user