forked from Archive/PX4-Autopilot
Fixed: Passing this->_armed_sub to close, which cannot accept a negative number.
This commit is contained in:
parent
91362223ea
commit
4baf4a032f
|
@ -513,7 +513,7 @@ UavcanNode::teardown()
|
|||
_control_subs[i] = -1;
|
||||
}
|
||||
}
|
||||
return ::close(_armed_sub);
|
||||
return (_armed_sub >= 0) ? ::close(_armed_sub) : 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue