]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Forgot to commit this part of fixing disable TCP dialing out
authorMatt Joiner <anacrolix@gmail.com>
Fri, 5 Dec 2014 06:56:51 +0000 (00:56 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 5 Dec 2014 06:56:51 +0000 (00:56 -0600)
client.go

index 84a11f59058ba874d5bfb80c1617731c94c6c0c0..83f3e5fa82a742019f3df4baffbad3ac5355f77f 100644 (file)
--- a/client.go
+++ b/client.go
@@ -648,7 +648,7 @@ func (me *Client) initiateConn(peer Peer, t *torrent) {
 
                // Initiate connections via TCP and UTP simultaneously. Use the first
                // one that succeeds.
-               left := 1
+               left := 0
                if !me.disableUTP {
                        left++
                }