From aba310d3a022eb3d6a1b5644b62e657f9b6333db Mon Sep 17 00:00:00 2001 From: david gauchard Date: Wed, 25 Mar 2020 04:06:03 +0100 Subject: [PATCH] webradio: example: http: gently listen to the end of the sentence before saying goodbye (#245) --- examples/WebRadio/WebRadio.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/WebRadio/WebRadio.ino b/examples/WebRadio/WebRadio.ino index cb536b5..23e1c16 100644 --- a/examples/WebRadio/WebRadio.ino +++ b/examples/WebRadio/WebRadio.ino @@ -421,6 +421,11 @@ void loop() } else { WebError(&client, 404, NULL, false); } + // web clients hate when door is violently shut + while (client.available()) { + PumpDecoder(); + client.read(); + } } PumpDecoder(); if (client) {