Archived

This forum has been archived. Please start a new discussion on GitHub.

Plugins get destroyed twice

If I have multiple plugins and, for example, the second one throws an exception then destroy() is called for first plugin, after that, on leaving Ice::Application::run, _pluginManager->destroy() is called causing destroy() to be called for first plugin once again, is that expected behavior ? If so, why does IceSSL have the following 'destroy' code:
_instance->destroy();
_instance = 0;
after second call to such destroy it'll throw Ice::NullHandleException and since
PluginManagerI::destroy() doesn't catch exceptions it'll no longer call
destroy's of other plugins.

Comments