device: fail to give bind if it doesn't exist
This commit is contained in:
parent
95c70b8032
commit
c718f3940d
2 changed files with 13 additions and 2 deletions
|
|
@ -133,6 +133,7 @@ func deviceUpdateState(device *Device) {
|
|||
switch newIsUp {
|
||||
case true:
|
||||
if err := device.BindUpdate(); err != nil {
|
||||
device.log.Error.Printf("Unable to update bind: %v\n", err)
|
||||
device.isUp.Set(false)
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue