just create a new map
This commit is contained in:
parent
5b4eb8b4ce
commit
5d207f17a1
@ -82,9 +82,6 @@ func Reconfigure() {
|
||||
syslog.Notice("UPS disconnected")
|
||||
events.FireEvent("ups_disconnected")
|
||||
Connected = false
|
||||
for key, _ := range Vars {
|
||||
delete(Vars, key)
|
||||
}
|
||||
// Vars = make(map[string]nut.Variable)
|
||||
Vars = make(map[string]nut.Variable)
|
||||
go UpsConnect()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user