summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Ice/Connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp
index 402d89867fc..66187162a4a 100644
--- a/cpp/src/Ice/Connection.cpp
+++ b/cpp/src/Ice/Connection.cpp
@@ -1176,7 +1176,7 @@ IceInternal::Connection::finished(const ThreadPoolPtr& threadPool)
{
registerWithPool();
}
- else if(_state == StateClosed)
+ else if(_state == StateClosed && _transceiver)
{
_transceiver->close();
_transceiver = 0;