]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Fix races around Reader and Torrent.Drop when Torrent is closed
[btrtrc.git] / client.go
index d5f96c0ee33d7b801065902d8d7f10eedc9aecdb..ee8261f378d580b56c5fdef1c3c6222cdfabe6b6 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1352,9 +1352,6 @@ func (cl *Client) dropTorrent(infoHash metainfo.Hash, wg *sync.WaitGroup) (err e
                return
        }
        err = t.close(wg)
-       if err != nil {
-               panic(err)
-       }
        delete(cl.torrents, infoHash)
        return
 }