]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Open new connections when a connection is dropped
authorMatt Joiner <anacrolix@gmail.com>
Mon, 17 Nov 2014 03:37:34 +0000 (21:37 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 17 Nov 2014 03:37:34 +0000 (21:37 -0600)
client.go

index 401f5efd11e11bc31576b570cea0ba98f5c0194c..c553afd5a1cc0af678c59918d301795124eea73e 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1042,6 +1042,7 @@ func (me *Client) dropConnection(torrent *torrent, conn *connection) {
                        torrent.Conns[i0] = torrent.Conns[i1]
                }
                torrent.Conns = torrent.Conns[:i1]
+               me.openNewConns()
                return
        }
        panic("connection not found")