mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
parent
cbbc262161
commit
ce4d149bf5
@ -85,7 +85,10 @@ func (s *Service) serve(ctx context.Context) {
|
||||
case <-timer.C:
|
||||
case <-s.processScheduled:
|
||||
if !timer.Stop() {
|
||||
<-timer.C
|
||||
select {
|
||||
case <-timer.C:
|
||||
default:
|
||||
}
|
||||
}
|
||||
case <-ctx.Done():
|
||||
timer.Stop()
|
||||
|
Loading…
Reference in New Issue
Block a user