Skip to content

Commit 887b72a

Browse files
committed
fix: Delete my WiFi passwrod
1 parent 1f4ea9c commit 887b72a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

examples/ChargenServer/ChargenServer.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ void handleClientAck(void* arg, AsyncClient* client, size_t len, uint32_t time)
5858
}
5959

6060
// Called periodically while the client is connected.
61-
// This function has the correct signature for onPoll: void(void*, AsyncClient*).
6261
void handleClientPoll(void* arg, AsyncClient* client) {
6362
// We can reuse the same logic as the ACK handler.
6463
// Just try to send more data if there's space.
65-
handleClientAck(arg, client, 0, 0); // Original call
64+
handleClientAck(arg, client, 0, 0);
6665
}
6766

6867
// It handles errors that are not normal disconnections.
@@ -75,8 +74,8 @@ void handleClientError(void* arg, AsyncClient* client, int error) {
7574
Serial.println("Cleaning up global client pointer due to error.");
7675
AsyncClientChargen = nullptr;
7776
}
78-
// We do not need to call "delete client" here because onDisconnect will do it
79-
// If the error is critical we will do it.
77+
// We do not need to call "delete client" here because onDisconnect will do it.
78+
// If the error is critical, we will do it.
8079
if (client->connected()) {
8180
client->close();
8281
}

0 commit comments

Comments
 (0)