diff options
Diffstat (limited to 'python/modules/IcePy/ValueFactoryManager.cpp')
-rw-r--r-- | python/modules/IcePy/ValueFactoryManager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/modules/IcePy/ValueFactoryManager.cpp b/python/modules/IcePy/ValueFactoryManager.cpp index 5ef221b0d0e..b2bc743a525 100644 --- a/python/modules/IcePy/ValueFactoryManager.cpp +++ b/python/modules/IcePy/ValueFactoryManager.cpp @@ -169,7 +169,13 @@ IcePy::ValueFactoryManager::destroy() { Lock lock(*this); - + if(_self == 0) + { + // + // Nothing to do if already destroyed (this can occur if communicator destroy is called multiple times) + // + return; + } // // Break the cyclic reference. // |