Mercurial Hosting > luan
diff src/luan/modules/http/HttpServicer.java @ 799:9c13a15a4002
Package.load() now returns false instead of null, and caches the result. This cleans up the luan.isLocked issues.
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 06 Sep 2016 18:03:19 -0600 |
parents | 9eccfede1094 |
children | 022ff91bde60 |
line wrap: on
line diff
--- a/src/luan/modules/http/HttpServicer.java Tue Sep 06 12:23:03 2016 -0600 +++ b/src/luan/modules/http/HttpServicer.java Tue Sep 06 18:03:19 2016 -0600 @@ -49,7 +49,7 @@ LuanTable module = (LuanTable)PackageLuan.require(luan,"luan:http/Http.luan"); LuanTable per_session_pages = (LuanTable)module.rawGet("per_session_pages"); Object mod = PackageLuan.load(luan,modName); - if( mod==null ) + if( mod.equals(Boolean.FALSE) ) return false; if( !(mod instanceof LuanFunction) ) throw new LuanException( "module '"+modName+"' must return a function" );