comparison src/luan/host/WebHandler.java @ 1203:7e6d132904fd

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 06 Mar 2018 13:29:56 -0700
parents d3a3ca116e42
children 034f2a0b3915
comparison
equal deleted inserted replaced
1202:d3a3ca116e42 1203:7e6d132904fd
76 private static LuanState getSite(String domain) { 76 private static LuanState getSite(String domain) {
77 synchronized(siteMap) { 77 synchronized(siteMap) {
78 Reference<LuanState> ref = siteMap.get(domain); 78 Reference<LuanState> ref = siteMap.get(domain);
79 LuanState luan = ref==null ? null : ref.get(); 79 LuanState luan = ref==null ? null : ref.get();
80 if( luan == null ) { 80 if( luan == null ) {
81 if(ref!=null) logger.info("gc "+domain); 81 //if(ref!=null) logger.info("gc "+domain);
82 if( sitesDir==null ) 82 if( sitesDir==null )
83 throw new NullPointerException("sitesDir"); 83 throw new NullPointerException("sitesDir");
84 File dir = new File(sitesDir,domain); 84 File dir = new File(sitesDir,domain);
85 if( !dir.exists() /* && !recover(dir) */ ) 85 if( !dir.exists() /* && !recover(dir) */ )
86 return null; 86 return null;