tracker/udp/conn-client.go | 3 +++ diff --git a/tracker/udp/conn-client.go b/tracker/udp/conn-client.go index 4e0d9852bd2672f9732eb88296396c7707ed5f60..1958c65953359558fd18dff4bddbbd9ed0155b62 100644 --- a/tracker/udp/conn-client.go +++ b/tracker/udp/conn-client.go @@ -35,6 +35,9 @@ if err != nil { // TODO: Do bad things to the dispatcher, and incoming calls to the client if we have a // read error. cc.readErr = err + if !cc.closed { + panic(err) + } break } err = cc.d.Dispatch(b[:n], addr)