diff --git a/lib/client/udp-tracker.js b/lib/client/udp-tracker.js index ffbbcc7..56e1b8a 100644 --- a/lib/client/udp-tracker.js +++ b/lib/client/udp-tracker.js @@ -199,10 +199,9 @@ class UDPTracker extends Tracker { break } - default: { + default: onError(new Error('tracker sent invalid action')) break - } } }