Skip to content

Commit 8c613e8

Browse files
committed
RedisBuffer
1 parent 93fb7f0 commit 8c613e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AudioTools/Communication/RedisBuffer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,14 @@ class RedisBuffer : public BaseBuffer<T> {
295295
int nl_pos = tail.indexOf("\r\n");
296296
while (nl_pos >= 0) {
297297
String head = tail.substring(0, nl_pos);
298-
result.strValues.push_back(head);
298+
if (!head.startsWith("$"))
299+
result.strValues.push_back(head);
299300
tail = tail.substring(nl_pos + 2);
300301
tail.trim();
301302
nl_pos = tail.indexOf("\r\n");
302303
}
303304

304-
if (tail.length() > 0) {
305+
if (!tail.startsWith("$") && tail.length() > 0) {
305306
result.strValues.push_back(tail);
306307
}
307308

0 commit comments

Comments
 (0)