Mercurial > hg > orthanc-python
diff Sources/Plugin.cpp @ 144:93c6f12bf339
improved support for /reset but still not ok
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 08 Nov 2023 08:55:12 +0100 |
parents | c55b0583084b |
children | 566df919b286 802d744d54d3 |
line wrap: on
line diff
--- a/Sources/Plugin.cpp Sat Oct 14 17:12:55 2023 +0200 +++ b/Sources/Plugin.cpp Wed Nov 08 08:55:12 2023 +0100 @@ -319,7 +319,8 @@ { if (!globalFunctions_.empty()) { - ORTHANC_PLUGINS_THROW_EXCEPTION(BadSequenceOfCalls); + return; +// ORTHANC_PLUGINS_THROW_EXCEPTION(BadSequenceOfCalls); } /** @@ -664,6 +665,8 @@ PythonLock::GlobalFinalize(); } + + OrthancPlugins::ResetGlobalContext(); }