Skip to content

Commit aba310d

Browse files
authored
webradio: example: http: gently listen to the end of the sentence before saying goodbye (#245)
1 parent 9e90cd7 commit aba310d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/WebRadio/WebRadio.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ void loop()
421421
} else {
422422
WebError(&client, 404, NULL, false);
423423
}
424+
// web clients hate when door is violently shut
425+
while (client.available()) {
426+
PumpDecoder();
427+
client.read();
428+
}
424429
}
425430
PumpDecoder();
426431
if (client) {

0 commit comments

Comments
 (0)