mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
lib/config: Subscribers get a copy of the config
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3722
This commit is contained in:
parent
6ec9b84674
commit
56e2ba29d0
@ -159,7 +159,7 @@ func (w *Wrapper) replaceLocked(to Configuration) error {
|
|||||||
|
|
||||||
func (w *Wrapper) notifyListeners(from, to Configuration) {
|
func (w *Wrapper) notifyListeners(from, to Configuration) {
|
||||||
for _, sub := range w.subs {
|
for _, sub := range w.subs {
|
||||||
go w.notifyListener(sub, from, to)
|
go w.notifyListener(sub, from.Copy(), to.Copy())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user