]> Sergey Matveev's repositories - btrtrc.git/blobdiff - t.go
Fix pending peer counts in transfer tests
[btrtrc.git] / t.go
diff --git a/t.go b/t.go
index ccd300967b0264d449545a67777ec512d45711e8..f517ab680533f5df774e59a1cde00123daea7bab 100644 (file)
--- a/t.go
+++ b/t.go
@@ -221,11 +221,11 @@ func (t *Torrent) Files() []*File {
        return *t.files
 }
 
-func (t *Torrent) AddPeers(pp []Peer) {
+func (t *Torrent) AddPeers(pp []Peer) int {
        cl := t.cl
        cl.lock()
        defer cl.unlock()
-       t.addPeers(pp)
+       return t.addPeers(pp)
 }
 
 // Marks the entire torrent for download. Requires the info first, see