Skip to content

Commit 352c463

Browse files
committed
FIX: AutoCloseables are not called on servlet destroy (Fixes #119)
1 parent 7a82e6e commit 352c463

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

restx-core/src/main/java/restx/RestxMainRouterFactory.java

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static synchronized void clear(String serverId) {
7070
routers.remove(serverId);
7171
Optional<Factory> factory = Factory.getFactory(serverId);
7272
if (factory.isPresent()) {
73+
factory.get().close();
7374
Factory.unregister(serverId, factory.get());
7475
}
7576
}

0 commit comments

Comments
 (0)