Skip to content

Commit 52f5502

Browse files
authored
fix: only stringify views (webtorrent#467)
1 parent 51a6b6d commit 52f5502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Client extends EventEmitter {
7070

7171
// Remove trailing slash from trackers to catch duplicates
7272
announce = announce.map(announceUrl => {
73-
announceUrl = arr2text(announceUrl)
73+
if (ArrayBuffer.isView(announceUrl)) announceUrl = arr2text(announceUrl)
7474
if (announceUrl[announceUrl.length - 1] === '/') {
7575
announceUrl = announceUrl.substring(0, announceUrl.length - 1)
7676
}

0 commit comments

Comments
 (0)