Merge pull request #172 from safing/fix/auto-pilot-level

Return mitigation level normal instead of off for no threads
This commit is contained in:
Patrick Pacher 2020-10-08 16:57:23 +02:00 committed by GitHub
commit da09255d8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ func getHighestMitigationLevel() uint8 {
threats.RLock()
defer threats.RUnlock()
var level uint8
var level uint8 = SecurityLevelNormal
for _, lvl := range threats.list {
if lvl > level {
level = lvl