]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Update requests on unchoke
authorMatt Joiner <anacrolix@gmail.com>
Thu, 7 Oct 2021 06:20:04 +0000 (17:20 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 7 Oct 2021 06:20:04 +0000 (17:20 +1100)
peerconn.go

index 0cb127fa684a5b70ecae117765d255b367a2232d..749832ca14de9994b3f976afc0f6547d1bdcc6f5 100644 (file)
@@ -1091,7 +1091,7 @@ func (c *PeerConn) mainReadLoop() (err error) {
                        c.updateExpectingChunks()
                case pp.Unchoke:
                        c.peerChoking = false
-                       c.tickleWriter()
+                       c.updateRequests()
                        c.updateExpectingChunks()
                case pp.Interested:
                        c.peerInterested = true