Skip to content

Commit 4159d35

Browse files
committed
ws client: drop support for old tracker servers
Old tracker server versions don’t send data.action === ‘announce’
1 parent 8ed0e14 commit 4159d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/websocket-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ WebSocketTracker.prototype._onSocketData = function (data) {
183183
return
184184
}
185185

186-
if (data.action === 'announce' || data.offer || data.answer) {
186+
if (data.action === 'announce') {
187187
self._onAnnounceResponse(data)
188188
} else if (data.action === 'scrape') {
189189
self._onScrapeResponse(data)

0 commit comments

Comments
 (0)