mirror of https://github.com/ArduPilot/ardupilot
AP_Periph: do not close if already closed
This commit is contained in:
parent
a82729589c
commit
c1ae140dcd
|
@ -938,6 +938,9 @@ local function Client(_sock, _idx)
|
|||
|
||||
function self.remove()
|
||||
DEBUG(string.format("%u: removing client OFFSET=%u", idx, offset))
|
||||
if self.closed then
|
||||
return
|
||||
end
|
||||
sock:close()
|
||||
self.closed = true
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue