]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Update Torrent.wantPeersEvent when info is obtained
authorMatt Joiner <anacrolix@gmail.com>
Mon, 23 May 2016 01:11:56 +0000 (11:11 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 23 May 2016 01:11:56 +0000 (11:11 +1000)
torrent.go

index e13accf5ab7a6218f281370b67e0f371777bc984..6cedebf37b7f9bb9bab07740140a5ba84c1f5850 100644 (file)
@@ -218,6 +218,7 @@ func (t *Torrent) setInfoBytes(b []byte) error {
        if err != nil {
                return fmt.Errorf("bad info: %s", err)
        }
+       defer t.updateWantPeersEvent()
        t.info = ie
        t.cl.event.Broadcast()
        t.gotMetainfo.Set()