diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-03-11 01:33:47 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-03-11 01:33:47 +0000 |
commit | e490e03b4ee5ce8cb1404be0a9b97f34bdca24ee (patch) | |
tree | a02fc4d47216d6b8a9c0eb204fd3eade58b9fc3b /ace/Svc_Handler.cpp | |
parent | 165cb450d56b6f2ee83632d51e90636e8e75159f (diff) | |
download | ATCD-e490e03b4ee5ce8cb1404be0a9b97f34bdca24ee.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Svc_Handler.cpp')
-rw-r--r-- | ace/Svc_Handler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Svc_Handler.cpp b/ace/Svc_Handler.cpp index f461b9081bc..b5d7621b461 100644 --- a/ace/Svc_Handler.cpp +++ b/ace/Svc_Handler.cpp @@ -31,8 +31,9 @@ ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::destroy (void) { ACE_TRACE ("ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::destroy"); - // Only delete ourselves if we've been allocated dynamically. - if (this->dynamic_ && this->closing_ == 0) + // Only delete ourselves if we're not owned by a module and have + // been allocated dynamically. + if (this->mod_ == 0 && this->dynamic_ && this->closing_ == 0) // Will call the destructor, which automatically calls <shutdown>. // Note that if we are *not* allocated dynamically then the // destructor will call <shutdown> automatically when it gets run |