X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t.go;h=af4fdec7f3c000cc6ab2fd36cb5204ac891c403a;hb=dee985f9bdd318e52edb90ebeb0cd787a0505a78;hp=765f3cf2a66ee6688b3895a6bd428c35e5bf9945;hpb=5ba8506b3f1165c0e3458668bff02cc936c65054;p=btrtrc.git diff --git a/t.go b/t.go index 765f3cf2..af4fdec7 100644 --- a/t.go +++ b/t.go @@ -100,7 +100,10 @@ func (t *Torrent) Drop() { defer wg.Wait() t.cl.lock() defer t.cl.unlock() - t.cl.dropTorrent(t.infoHash, &wg) + err := t.cl.dropTorrent(t.infoHash, &wg) + if err != nil { + panic(err) + } } // Number of bytes of the entire torrent we have completed. This is the sum of