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();
|
final Socket s = new Socket();
|
||||||
try {
|
try {
|
||||||
final InetAddress host = InetAddress.getByName(uri.getHost());
|
final InetAddress host = InetAddress.getByName(uri.getHost());
|
||||||
s.bind(null);
|
|
||||||
s.connect(new InetSocketAddress(host, port), tms);
|
s.connect(new InetSocketAddress(host, port), tms);
|
||||||
} catch (IOException c) {
|
} catch (IOException c) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue