mirror of
https://github.com/safing/portbase
synced 2025-09-17 02:29:50 +00:00
Add support for module sleep mode
This commit is contained in:
parent
98574e44c4
commit
0ed865f4e4
6 changed files with 139 additions and 6 deletions
|
@ -443,6 +443,10 @@ func (t *Task) addToSchedule(overtime bool) {
|
|||
}
|
||||
|
||||
func waitUntilNextScheduledTask() <-chan time.Time {
|
||||
if sleepMode.IsSet() {
|
||||
<-taskSchedulerSleepModeExitChannel
|
||||
}
|
||||
|
||||
scheduleLock.Lock()
|
||||
defer scheduleLock.Unlock()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue