Mercurial Hosting > luan
diff src/luan/modules/IoLuan.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 | c49980cdece6 |
children | e7fb974e0c26 |
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java Tue Sep 06 12:23:03 2016 -0600 +++ b/src/luan/modules/IoLuan.java Tue Sep 06 18:03:19 2016 -0600 @@ -685,13 +685,7 @@ LuanFunction opener = (LuanFunction)schemes.get(luan,scheme); if( opener == null ) throw new LuanException( "invalid scheme '"+scheme+"' in '"+name+"'" ); - boolean isLocked = luan.isLocked; // hack needed for luan scheme functions - luan.isLocked = false; - try { - return (LuanTable)Luan.first(opener.call(luan,new Object[]{location,options})); - } finally { - luan.isLocked = isLocked; - } + return (LuanTable)Luan.first(opener.call(luan,new Object[]{location,options})); } public static final class LuanSocket extends LuanIO {