Skip to content

Commit

Permalink
Merge pull request #53 from DL-ETeam/main
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng authored Dec 11, 2024
2 parents 25420b8 + 1cc3d48 commit 72a5ef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ auto message = message_set.create("PARAM_REQUEST_READ") ({
{"param_index", -1}
});
// send a message
conection.send(message);
conection->send(message);

// ⚠️ Potential race condition here! (read below)

Expand All @@ -204,7 +204,7 @@ auto message = message_set.create("PARAM_REQUEST_READ") ({
// Already watch for the answer
auto expectation = connection->expect("PARAM_VALUE");
// send the message
conection.send(message);
conection->send(message);
// Wait for the answer, with a 1s timeout
auto response = connection->receive(expecation, 1000);
```
Expand Down

0 comments on commit 72a5ef7

Please sign in to comment.