Closed eino-makitalo closed 7 years ago
Hmm... I see where calling ews.init() multiple times in the same application could do this, or if using the options to specify a temp directory where init() is then just repeatedly appending the fix.
A fix for the latter is definitely needed, but curious if you are seeing multiple calls to init() / fixWsdl() in some other scenario I am missing?
Just applied a modification of your fix along with a few other cleanup items.
You are probably right. I have temp dir set in options. And I have also initialized this directory with wsdl and xsd files now. So I have not tested if this happens without temp dir set.
It seems that this fixWsdl is called many times. So this check prevents fixing (aka adding-block multiple times to system). Maybe there are better way to prevent system to call this fix-routine so many times? reject this if you have some better approach :-)