Open new connections when a connection is dropped

This commit is contained in:
Matt Joiner 2014-11-16 21:37:34 -06:00
parent 5bf56f6d8d
commit ad7cf646c8
1 changed files with 1 additions and 0 deletions

View File

@ -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")