From: Matt Joiner Date: Mon, 17 Nov 2014 03:37:34 +0000 (-0600) Subject: Open new connections when a connection is dropped X-Git-Tag: v1.0.0~1533 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ad7cf646c8b4511eeee03b29862dda23f384695b;p=btrtrc.git Open new connections when a connection is dropped --- diff --git a/client.go b/client.go index 401f5efd..c553afd5 100644 --- 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")