TransportGitAnon: remove unnecessary socket bind to a local address

before connecting.

A socket gets bound on connect in the next line.

Signed-off-by: Alina Djamankulova <adjama@google.com>
Change-Id: I69a423c592e2fdd582b3c40099137b4ef3d05b39
This commit is contained in:
Alina Djamankulova 2021-02-05 10:12:25 -08:00
parent 4560bdf7e2
commit f077158acf
1 changed files with 0 additions and 1 deletions

View File

@ -121,7 +121,6 @@ Socket openConnection() throws TransportException {
final Socket s = new Socket();
try {
final InetAddress host = InetAddress.getByName(uri.getHost());
s.bind(null);
s.connect(new InetSocketAddress(host, port), tms);
} catch (IOException c) {
try {