Skip to content

Commit

Permalink
Don't overwrite the message variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Dec 11, 2024
1 parent 4a691cf commit 7da8e10
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 7da8e10

Please sign in to comment.