webradio: example: http: gently listen to the end of the sentence before saying goodbye (#245)

This commit is contained in:
david gauchard authored and GitHub committed 2020-03-24 20:06:03 -07:00
1 parent 9e90cd780e
commit aba310d3a0
1 file changed
+5
+5
View File
@@ -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) {