Compare commits

...

1 Commits

Author SHA1 Message Date
banshan
ab1ef3a560 修复通道更新 2021-06-28 16:00:19 +08:00

View File

@@ -59,7 +59,6 @@ func (d *Device) addChannel(channel *Channel) {
func (d *Device) UpdateChannels(list []*Channel) {
d.channelMutex.Lock()
defer d.channelMutex.Unlock()
d.Channels = nil
for _, c := range list {
c.device = d
if c.ParentID != "" {