Skip to content

Commit 352c463

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
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)