X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t.go;h=45856cc7acbeaa5988074f74435d078a49111a57;hb=HEAD;hp=af4fdec7f3c000cc6ab2fd36cb5204ac891c403a;hpb=dee985f9bdd318e52edb90ebeb0cd787a0505a78;p=btrtrc.git diff --git a/t.go b/t.go index af4fdec7..45856cc7 100644 --- a/t.go +++ b/t.go @@ -235,8 +235,8 @@ func (t *Torrent) Files() []*File { func (t *Torrent) AddPeers(pp []PeerInfo) (n int) { t.cl.lock() + defer t.cl.unlock() n = t.addPeers(pp) - t.cl.unlock() return }