Skip to content

Commit cb556a8

Browse files
committed
System Touch
1 parent 35c9ea4 commit cb556a8

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

source/server/nitro/NitroWebExpress.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)