mirror of
https://github.com/logos-storage/bittorrent-tracker.git
synced 2026-01-08 07:53:08 +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') {
|
||||
self._onScrapeResponse(data)
|
||||
} else {
|
||||
throw new Error('invalid action in WS response: ' + data.action)
|
||||
self._onSocketError(new Error('invalid action in WS response: ' + data.action))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user