Skip to content

Commit

Permalink
Don't overwrite the message variable. (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaff authored Dec 19, 2024
1 parent 75ddc8f commit 6ce7268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/HttpServer_WebSockets/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ void wsMessageReceived(WebsocketConnection& socket, const String& message)
Serial.println(message);

if(message == _F("shutdown")) {
String message(F("The server is shutting down..."));
socket.broadcast(message);
String reply(F("The server is shutting down..."));
socket.broadcast(reply);
shutdownServer();
return;
}
Expand Down

0 comments on commit 6ce7268

Please sign in to comment.