Close idle connections of unreferenced outbounds and DNS servers

This commit is contained in:
世界
2026-10-02 18:00:09 +08:00
parent d2cf9747d7
commit fd9a076d25
40 changed files with 851 additions and 81 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func prepareWorkingDirectory() error {
return err
}
libbox.PromoteOOMDraft()
libbox.PromotePowerReportDraft()
libbox.DiscardPowerReportDraft()
return nil
}
+2 -2
View File
@@ -203,7 +203,7 @@ func (d *Daemon) configureWorkingDirectoryLocked(directory string) error {
return err
}
libbox.PromoteOOMDraft()
libbox.PromotePowerReportDraft()
libbox.DiscardPowerReportDraft()
d.runtimeWorkingDirectory = directory
return nil
}
@@ -262,7 +262,7 @@ func (d *Daemon) stopServiceLocked(ownerUserID string) error {
}
}
d.powerManager.Close()
libbox.PromotePowerReportDraft()
libbox.DiscardPowerReportDraft()
directory := userWorkingDirectory(ownerUserID)
crashReportError := tagUnownedReports(filepath.Join(directory, crashReportsDirectoryName), ownerUserID)
if crashReportError != nil {