}
public static synchronized void removeRealm(String id) {
- CONNECTIONS.remove(id);
+ SCLRealm realm = CONNECTIONS.remove(id);
+ if (realm != null)
+ realm.close();
// if node support has been created remove it as well
- SUPPORTS.remove(id);
+ NodeSupport<String> support = SUPPORTS.remove(id);
+ if (support != null)
+ support.dispose();
}
}