mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-11-06 02:07:12 +00:00
Close idle connections of unreferenced outbounds and DNS servers
This commit is contained in:
@@ -67,7 +67,7 @@ func prepareWorkingDirectory() error {
|
||||
return err
|
||||
}
|
||||
libbox.PromoteOOMDraft()
|
||||
libbox.PromotePowerReportDraft()
|
||||
libbox.DiscardPowerReportDraft()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user