mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-21 15:36:51 +00:00
Fix memory pressure callback restarting stopped OOM killer timer
This commit is contained in:
@@ -8,7 +8,10 @@ func (t *adaptiveTimer) notifyPressure() {
|
||||
badCleanup()
|
||||
runtimeDebug.FreeOSMemory()
|
||||
t.access.Lock()
|
||||
t.startLocked()
|
||||
if t.timer == nil {
|
||||
t.access.Unlock()
|
||||
return
|
||||
}
|
||||
t.forceMinInterval = true
|
||||
t.pendingPressureBaseline = true
|
||||
t.access.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user