Skip to content

Commit 2bafdea

Browse files
committed
fix: Cancel the TSV reader, since it may not be exhausted
1 parent 5e92313 commit 2bafdea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/files/tsv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function _loadTSV(file: BIDSFile, maxRows: number = -1): Promise<ColumnsMa
5353
headers.map((header, index) => [header, columns[index].slice(0, rowIndex)]),
5454
)
5555
} finally {
56-
reader.releaseLock()
56+
await reader.cancel()
5757
}
5858
}
5959

0 commit comments

Comments
 (0)