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:
parent
4560bdf7e2
commit
f077158acf
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue