summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-07-12 02:07:04 +0000
committerMarc Laukien <marc@zeroc.com>2004-07-12 02:07:04 +0000
commit45c7879359b38cfe96e0377e9e04fd7f946b0973 (patch)
treea733c693a8c4c1e1dc15f75848f55bde1dca864d /cpp
parentfixed AMI bug (diff)
downloadice-45c7879359b38cfe96e0377e9e04fd7f946b0973.tar.bz2
ice-45c7879359b38cfe96e0377e9e04fd7f946b0973.tar.xz
ice-45c7879359b38cfe96e0377e9e04fd7f946b0973.zip
fixed AMI bug
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Ice/OutgoingAsync.cpp18
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();
+ }
}
}