feross/bittorrent-protocol — pull request #2 by astro (2014-03-06 16:20:20+00:00)
Title: Wire._onHave: don't emit 'have' if peerPieces had index already

This time with a test. In that test I called `wire._onHave()` because `wire.have()` is asynchronous due to piping. That could probably be improved.