diff --git a/Tools/AP_Periph/Web/scripts/pppgw_webui.lua b/Tools/AP_Periph/Web/scripts/pppgw_webui.lua index 3390a89dc4bbdb..64b620f171c966 100644 --- a/Tools/AP_Periph/Web/scripts/pppgw_webui.lua +++ b/Tools/AP_Periph/Web/scripts/pppgw_webui.lua @@ -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