Skip to content

Commit

Permalink
fix: Cancel the TSV reader, since it may not be exhausted
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 10, 2025
1 parent 5e92313 commit 2bafdea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/tsv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function _loadTSV(file: BIDSFile, maxRows: number = -1): Promise<ColumnsMa
headers.map((header, index) => [header, columns[index].slice(0, rowIndex)]),
)
} finally {
reader.releaseLock()
await reader.cancel()
}
}

Expand Down

0 comments on commit 2bafdea

Please sign in to comment.