Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stream_readall: This can be long-running, run background tasks
While finding sources of clicks and buzzes in nrf i2sout, I identified
this site as one which could be long running.  Reproducer code was to
play a 22.05kHz sample and repeatedly print `os.listdir('')`
  • Loading branch information
jepler committed Sep 10, 2019
commit 932ac0960b01029701e6e53bb5eb9adafb182d41
1 change: 1 addition & 0 deletions py/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ STATIC mp_obj_t stream_readall(mp_obj_t self_in) {
p = vstr_extend(&vstr, DEFAULT_BUFFER_SIZE);
current_read = DEFAULT_BUFFER_SIZE;
}
RUN_BACKGROUND_TASKS;
}

vstr.len = total_size;
Expand Down