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