mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
Don't require restart for usage reporting changes (fixes #2704)
This commit is contained in:
parent
693e1c93f1
commit
6c1faa4bdb
@ -1959,7 +1959,16 @@ func (m *Model) CommitConfiguration(from, to config.Configuration) bool {
|
||||
}
|
||||
}
|
||||
|
||||
// All of the generic options require restart
|
||||
// Some options don't require restart as those components handle it fine
|
||||
// by themselves.
|
||||
from.Options.URAccepted = to.Options.URAccepted
|
||||
from.Options.URUniqueID = to.Options.URUniqueID
|
||||
// All of the other generic options require restart. Or at least they may;
|
||||
// removing this check requires going through those options carefully and
|
||||
// making sure there are individual services that handle them correctly.
|
||||
// This code is the "original" requires-restart check and protects other
|
||||
// components that haven't yet been converted to VerifyConfig/CommitConfig
|
||||
// handling.
|
||||
if !reflect.DeepEqual(from.Options, to.Options) {
|
||||
l.Debugln(m, "requires restart, options differ")
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user