mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
lib/nat: Avoid concurrent reset of NAT timer (fixes #3337)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3341
This commit is contained in:
parent
9323f0faf8
commit
a2dcffcca2
@ -44,9 +44,8 @@ func NewService(id protocol.DeviceID, cfg *config.Wrapper) *Service {
|
||||
func (s *Service) Serve() {
|
||||
announce := stdsync.Once{}
|
||||
|
||||
s.timer.Reset(0)
|
||||
|
||||
s.mut.Lock()
|
||||
s.timer.Reset(0)
|
||||
s.stop = make(chan struct{})
|
||||
s.mut.Unlock()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user