mirror of https://gitlab.com/ita1024/waf.git
cleanup in Netcache.java
This commit is contained in:
parent
083b6e138e
commit
023329adb4
|
@ -3,6 +3,7 @@ NEW IN WAF 1.7.7
|
||||||
* XLC and XLF detection fixes #1230
|
* XLC and XLF detection fixes #1230
|
||||||
* Fixed the multiple gcc/msvc builds #1237
|
* Fixed the multiple gcc/msvc builds #1237
|
||||||
* Better gdc detection on Ubuntu #1222
|
* Better gdc detection on Ubuntu #1222
|
||||||
|
* Enable relative symlinks #1234
|
||||||
|
|
||||||
NEW IN WAF 1.7.6
|
NEW IN WAF 1.7.6
|
||||||
----------------
|
----------------
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class Netcache implements Runnable, Comparator<Object[]> {
|
||||||
private static double CLEANRATIO = 0.8;
|
private static double CLEANRATIO = 0.8;
|
||||||
private static int BUF = 16 * 8192;
|
private static int BUF = 16 * 8192;
|
||||||
|
|
||||||
private static HashMap<String, Object[]> flist = null;
|
private final static HashMap<String, Object[]> flist = new HashMap<String, Object[]>();
|
||||||
private Socket sock = null;
|
private Socket sock = null;
|
||||||
private int port = 0;
|
private int port = 0;
|
||||||
|
|
||||||
|
@ -222,8 +222,8 @@ public class Netcache implements Runnable, Comparator<Object[]> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void init_flist() {
|
public static void init_flist() {
|
||||||
flist = new HashMap<String, Object[]>();
|
|
||||||
synchronized(flist) {
|
synchronized(flist) {
|
||||||
|
flist.clear();
|
||||||
File dir = new File(CACHEDIR);
|
File dir = new File(CACHEDIR);
|
||||||
try {
|
try {
|
||||||
dir.mkdirs();
|
dir.mkdirs();
|
||||||
|
|
Loading…
Reference in New Issue