mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
open new window not always work, so give it a little time before exit
This commit is contained in:
@@ -379,6 +379,8 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
.spawn()
|
||||
.ok();
|
||||
}
|
||||
// leave above open a little time
|
||||
hbb_common::sleep(0.3).await;
|
||||
}
|
||||
std::process::exit(-1); // to make sure --server luauchagent process can restart because SuccessfulExit used
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user