diff --git a/device.go b/device.go index 53e7dcc..6758cbc 100644 --- a/device.go +++ b/device.go @@ -162,16 +162,12 @@ func (device *Device) Up() { return } - device.state.mutex.Lock() device.isUp.Set(true) - device.state.mutex.Unlock() deviceUpdateState(device) } func (device *Device) Down() { - device.state.mutex.Lock() device.isUp.Set(false) - device.state.mutex.Unlock() deviceUpdateState(device) }