tracker/udp/conn-client.go | 3 ++- diff --git a/tracker/udp/conn-client.go b/tracker/udp/conn-client.go index f379d8574630438ed007745b43996908322f9a81..da4d7c06134138426da99f19abff57c73ef646a5 100644 --- a/tracker/udp/conn-client.go +++ b/tracker/udp/conn-client.go @@ -42,7 +42,8 @@ // 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) + // don't panic, just close the connection, fix https://github.com/anacrolix/torrent/issues/845 + cc.Close() } break }