refactor: 移除遥测并修复启动器流程
This commit is contained in:
1 parent
1fa56add19
commit
1593ac7a7c
175 files changed
+547
-12210
No files matched your search
@@ -1194,25 +1194,6 @@ impl Process {
|
||||
record_post_upgrade_launch_best_effort(&instance_id, clean_launch)
|
||||
.await;
|
||||
|
||||
// Publish play time update
|
||||
// Allow failure, it will be stored locally and sent next time
|
||||
// Sent in another thread as first call may take a couple seconds and hold up process ending
|
||||
let playtime_instance_id = instance_id.clone();
|
||||
tokio::spawn(async move {
|
||||
if let Err(e) =
|
||||
crate::api::instance::try_update_playtime_by_instance_id(
|
||||
&playtime_instance_id,
|
||||
)
|
||||
.await
|
||||
{
|
||||
tracing::warn!(
|
||||
"Failed to update playtime for instance {}: {}",
|
||||
playtime_instance_id,
|
||||
e
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
let log_path = logs_folder.join(LAUNCHER_LOG_PATH);
|
||||
|
||||
if log_path.exists()
|
||||
@@ -1248,8 +1229,6 @@ impl Process {
|
||||
)
|
||||
.await?;
|
||||
|
||||
let _ = state.discord_rpc.clear_to_default(true).await;
|
||||
|
||||
if mc_exit_status.success() {
|
||||
// We do not wait on the post exist command to finish running! We let it spawn + run on its own.
|
||||
// This behaviour may be changed in the future
|
||||
|
||||
Reference in new issue
Block a user