summaryrefslogtreecommitdiffhomepage
path: root/device.go
diff options
context:
space:
mode:
Diffstat (limited to 'device.go')
-rw-r--r--device.go4
1 files changed, 0 insertions, 4 deletions
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)
}