Skip to content

Commit

Permalink
AP_Periph: do not close if already closed
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Feb 19, 2024
1 parent de318c5 commit 00da51c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/AP_Periph/Web/scripts/pppgw_webui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,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
Expand Down

0 comments on commit 00da51c

Please sign in to comment.