mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Use new microtask function
This commit is contained in:
parent
aa388e29e5
commit
ebf08c84a9
1 changed files with 1 additions and 2 deletions
|
@ -40,8 +40,7 @@ func connectionCleaner(ctx context.Context) error {
|
|||
func cleanConnections() (activePIDs map[int]struct{}) {
|
||||
activePIDs = make(map[int]struct{})
|
||||
|
||||
name := "clean connections" // TODO: change to new fn
|
||||
_ = module.RunMediumPriorityMicroTask(&name, func(ctx context.Context) error {
|
||||
_ = module.RunMicroTask("clean connections", 0, func(ctx context.Context) error {
|
||||
now := time.Now().UTC()
|
||||
nowUnix := now.Unix()
|
||||
deleteOlderThan := now.Add(-DeleteConnsAfterEndedThreshold).Unix()
|
||||
|
|
Loading…
Add table
Reference in a new issue