File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,9 @@ public static class InstalledModule
164164 public InstalledModule (final String NAME , final Path SOURCE , final URLClassLoader LOADER )
165165 {
166166 this .NAME = NAME ;
167+
167168 this .SOURCE = SOURCE ;
169+
168170 this .LOADER = LOADER ;
169171 }
170172 }
@@ -182,9 +184,19 @@ public static void register(final InstalledModule M)
182184 public static boolean unload (final String NAME )
183185 {
184186 InstalledModule m = MODULES .remove (NAME );
187+
185188 if (m == null ) return false ;
186- try { m .LOADER .close (); } catch (Exception ignored ) {}
189+
190+ try
191+ { m .LOADER .close ();
192+ }
193+ catch (Exception ignored )
194+ {
195+ ignored .printStackTrace (System );
196+ }
197+
187198 CommonRails .printSystemComponent (m , m .hashCode (), ". ModuleRegistry unloaded module [" + NAME + "] ." );
199+
188200 return true ;
189201 }
190202
You can’t perform that action at this time.
0 commit comments