mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
do not throw and crash client
This commit is contained in:
parent
d3389f6784
commit
8c01cb7268
@ -154,7 +154,7 @@ WebSocketTracker.prototype._onSocketData = function (data) {
|
|||||||
} else if (data.action === 'scrape') {
|
} else if (data.action === 'scrape') {
|
||||||
self._onScrapeResponse(data)
|
self._onScrapeResponse(data)
|
||||||
} else {
|
} else {
|
||||||
throw new Error('invalid action in WS response: ' + data.action)
|
self._onSocketError(new Error('invalid action in WS response: ' + data.action))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user