cleanup in Netcache.java

This commit is contained in:
Thomas Nagy 2012-12-15 20:21:52 +01:00
parent 083b6e138e
commit 023329adb4
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ NEW IN WAF 1.7.7
* XLC and XLF detection fixes #1230
* Fixed the multiple gcc/msvc builds #1237
* Better gdc detection on Ubuntu #1222
* Enable relative symlinks #1234
NEW IN WAF 1.7.6
----------------

View File

@ -23,7 +23,7 @@ public class Netcache implements Runnable, Comparator<Object[]> {
private static double CLEANRATIO = 0.8;
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 int port = 0;
@ -222,8 +222,8 @@ public class Netcache implements Runnable, Comparator<Object[]> {
}
public static void init_flist() {
flist = new HashMap<String, Object[]>();
synchronized(flist) {
flist.clear();
File dir = new File(CACHEDIR);
try {
dir.mkdirs();