comparison src/luan/modules/http/LuanHandler.java @ 1411:8dec6b62a5e4

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 30 Sep 2019 19:20:05 -0600
parents 27efb1fcbcb5
children 56fb5cd8228d
comparison
equal deleted inserted replaced
1410:dc625408def8 1411:8dec6b62a5e4
74 Http.put( "disable_luan", new LuanJavaFunction(luanInit,disableLuanMethod,fns) ); 74 Http.put( "disable_luan", new LuanJavaFunction(luanInit,disableLuanMethod,fns) );
75 Http.put( "dont_gc", new LuanJavaFunction(luanInit,dontGcMethod,fns) ); 75 Http.put( "dont_gc", new LuanJavaFunction(luanInit,dontGcMethod,fns) );
76 } catch(LuanException e) { 76 } catch(LuanException e) {
77 throw new RuntimeException(e); 77 throw new RuntimeException(e);
78 } 78 }
79 sysLogger.info("new "+domain); 79 if( domain != null )
80 sysLogger.info("new "+domain);
80 currentLuan = newLuan(); 81 currentLuan = newLuan();
81 } 82 }
82 83
83 protected void finalize() throws Throwable { 84 protected void finalize() throws Throwable {
84 sysLogger.info("gc "+domain); 85 if( domain != null )
86 sysLogger.info("gc "+domain);
85 } 87 }
86 88
87 private Luan newLuan() { 89 private Luan newLuan() {
88 Luan luan; 90 Luan luan;
89 synchronized(luanInit) { 91 synchronized(luanInit) {