Skip to content

Commit

Permalink
[858] Fix typo in heartbeat code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Dec 6, 2024
1 parent 40f563a commit 242b365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main_server/src/agent_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ namespace
send(net_obj->socket_handle(), &(heartbeat[heartbeat_length - bytes_to_send]), bytes_to_send, 0);

// We do not check for 0 because it is not considered an error condition. It only means 0
// bytes were sent. As longs as we have more bytes to send and no error has occurred, we
// bytes were sent. As long as we have more bytes to send and no error has occurred, we
// keep attempting to send bytes.
if (bytes_sent == -1) {
const int errsav = errno;
Expand Down

0 comments on commit 242b365

Please sign in to comment.