diff options
-rw-r--r-- | py/CHANGES | 4 | ||||
-rw-r--r-- | py/modules/IcePy/Proxy.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/py/CHANGES b/py/CHANGES index b09e1d1119b..1ca5166ef81 100644 --- a/py/CHANGES +++ b/py/CHANGES @@ -1,6 +1,10 @@ Changes since version 3.1.1 --------------------------- +- Fixed a bug that would cause a crash if you attempted to obtain + the string representation of a proxy after the communicator was + destroyed. + - Proxies and object adapters can now be configured to use thread-per-connection. diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp index 8b2263dbb33..ee869aa18a4 100644 --- a/py/modules/IcePy/Proxy.cpp +++ b/py/modules/IcePy/Proxy.cpp @@ -180,7 +180,7 @@ extern "C" static PyObject* proxyRepr(ProxyObject* self) { - string str = (*self->communicator)->proxyToString(*self->proxy); + string str = (*self->proxy)->ice_toString(); return PyString_FromString(const_cast<char*>(str.c_str())); } |