diff --git a/Tools/AP_Periph/Web/scripts/pppgw_webui.lua b/Tools/AP_Periph/Web/scripts/pppgw_webui.lua index a30b8bc1fa..9c458c7e07 100644 --- a/Tools/AP_Periph/Web/scripts/pppgw_webui.lua +++ b/Tools/AP_Periph/Web/scripts/pppgw_webui.lua @@ -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