| … | … | @@ -98,8 +98,10 @@ class CogChannel |
| 98 | 98 | : client(c), callback(cb), noreply(nr), |
| 99 | 99 | str_to_send(str), data(d) |
| 100 | 100 | { |
| 101 | // Non-idempotent messages get unique sequence numbers. | |
| 102 | // "(cog-barrier " - note trailing space, not closing paren! | |
| 101 | 103 | if (str.compare(0, 19, "(cog-update-value!") == 0 or |
| 102 | str.compare(0, 13, "(cog-barrier)") == 0) | |
| 104 | str.compare(0, 13, "(cog-barrier ") == 0) | |
| 103 | 105 | { |
| 104 | 106 | sequence = ++_sequence_counter; |
| 105 | 107 | } |