diff options
author | Marc Laukien <marc@zeroc.com> | 2004-07-12 02:07:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-07-12 02:07:04 +0000 |
commit | 45c7879359b38cfe96e0377e9e04fd7f946b0973 (patch) | |
tree | a733c693a8c4c1e1dc15f75848f55bde1dca864d /cpp/src | |
parent | fixed AMI bug (diff) | |
download | ice-45c7879359b38cfe96e0377e9e04fd7f946b0973.tar.bz2 ice-45c7879359b38cfe96e0377e9e04fd7f946b0973.tar.xz ice-45c7879359b38cfe96e0377e9e04fd7f946b0973.zip |
fixed AMI bug
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/OutgoingAsync.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/cpp/src/Ice/OutgoingAsync.cpp b/cpp/src/Ice/OutgoingAsync.cpp index d2509add681..c3d612cb546 100644 --- a/cpp/src/Ice/OutgoingAsync.cpp +++ b/cpp/src/Ice/OutgoingAsync.cpp @@ -399,20 +399,26 @@ IceInternal::OutgoingAsync::__send() void IceInternal::OutgoingAsync::warning(const Exception& ex) const { - if(_reference->instance->properties()->getPropertyAsIntWithDefault("Ice.Warn.AMICallback", 1) > 0) + if(_reference) // Don't print anything if cleanup() was already called. { - Warning out(_reference->instance->logger()); - out << "Ice::Exception raised by AMI callback:\n" << ex; + if(_reference->instance->properties()->getPropertyAsIntWithDefault("Ice.Warn.AMICallback", 1) > 0) + { + Warning out(_reference->instance->logger()); + out << "Ice::Exception raised by AMI callback:\n" << ex; + } } } void IceInternal::OutgoingAsync::warning(const std::exception& ex) const { - if(_reference->instance->properties()->getPropertyAsIntWithDefault("Ice.Warn.AMICallback", 1) > 0) + if(_reference) // Don't print anything if cleanup() was already called. { - Warning out(_reference->instance->logger()); - out << "std::exception raised by AMI callback:\n" << ex.what(); + if(_reference->instance->properties()->getPropertyAsIntWithDefault("Ice.Warn.AMICallback", 1) > 0) + { + Warning out(_reference->instance->logger()); + out << "std::exception raised by AMI callback:\n" << ex.what(); + } } } |