mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 20:08:27 +00:00
764da14440
This fixes both a race condition where we could assign s.stop from one goroutine and then read it from another without locking, and handles the fact that listener may be nil at shutdown if we've had a bad CommitConfiguration call in the meantime.