]> Sergey Matveev's repositories - btrtrc.git/blobdiff - t.go
Fixes for storage tests on Windows
[btrtrc.git] / t.go
diff --git a/t.go b/t.go
index 765f3cf2a66ee6688b3895a6bd428c35e5bf9945..af4fdec7f3c000cc6ab2fd36cb5204ac891c403a 100644 (file)
--- 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