mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
Provide size of array.
This commit is contained in:
parent
3e78d89cac
commit
467356526e
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ public class IrcDiscovery implements PeerDiscovery {
|
||||||
log.warn("Exception whilst closing IRC discovery: " + e.toString());
|
log.warn("Exception whilst closing IRC discovery: " + e.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return addresses.toArray(new InetSocketAddress[]{});
|
return addresses.toArray(new InetSocketAddress[addresses.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void logAndSend(String command) throws Exception {
|
private void logAndSend(String command) throws Exception {
|
||||||
|
|
Loading…
Add table
Reference in a new issue