Skip to content

Commit

Permalink
AP_Periph: fix trying to close already closed sock
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Mar 14, 2024
1 parent 6eeedfe commit a2facce
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 a2facce

Please sign in to comment.