Permalink
Browse files

FIX: AutoCloseables are not called on servlet destroy (Fixes #119)

  • Loading branch information...
xhanin committed Oct 28, 2014
1 parent 7a82e6e commit 352c4639a62fe3de31170e5de9400e2e2723b634
Showing with 1 addition and 0 deletions.
  1. +1 −0 restx-core/src/main/java/restx/RestxMainRouterFactory.java
@@ -70,6 +70,7 @@ public static synchronized void clear(String serverId) {
routers.remove(serverId);
Optional<Factory> factory = Factory.getFactory(serverId);
if (factory.isPresent()) {
+ factory.get().close();
Factory.unregister(serverId, factory.get());
}
}

0 comments on commit 352c463

Please sign in to comment.