Bug fix: Stop DOT if disabled by new settings

This commit is contained in:
Quentin McGaw
2020-12-30 20:38:59 +00:00
parent 5f78ee7b79
commit 1e4243dedb

View File

@@ -92,6 +92,8 @@ func (l *looper) SetSettings(settings settings.DNS) (outcome string) {
return "update period changed"
}
_, _ = l.SetStatus(constants.Stopped)
outcome, _ = l.SetStatus(constants.Running)
if settings.Enabled {
outcome, _ = l.SetStatus(constants.Running)
}
return outcome
}