Skip to content

Commit ff2615a

Browse files
committed
Keep polling for data in buffer_read (Fix #6)
1 parent 825a9be commit ff2615a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int buffer_read(buffer_t *buffer, char *data, int len)
4545

4646
while (last == 0) {
4747
linked_list_get((*buffer), block);
48-
if (block == NULL) break;
48+
if (block == NULL) continue;
4949

5050
last = block -> last;
5151
if (pos >= len) {

0 commit comments

Comments
 (0)