mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-10-25 13:52:08 +00:00
Fix memory pressure callback restarting stopped OOM killer timer
This commit is contained in:
parent
73a4196cb3
commit
b5d5338e52
1 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue