summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/EndpointInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/modules/IcePy/EndpointInfo.cpp')
-rw-r--r--python/modules/IcePy/EndpointInfo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/modules/IcePy/EndpointInfo.cpp b/python/modules/IcePy/EndpointInfo.cpp
index a712cb81186..1106390b20a 100644
--- a/python/modules/IcePy/EndpointInfo.cpp
+++ b/python/modules/IcePy/EndpointInfo.cpp
@@ -659,7 +659,11 @@ PyObject*
IcePy::createEndpointInfo(const Ice::EndpointInfoPtr& endpointInfo)
{
PyTypeObject* type;
- if(Ice::TCPEndpointInfoPtr::dynamicCast(endpointInfo))
+ if(Ice::WSEndpointInfoPtr::dynamicCast(endpointInfo))
+ {
+ type = &WSEndpointInfoType;
+ }
+ else if(Ice::TCPEndpointInfoPtr::dynamicCast(endpointInfo))
{
type = &TCPEndpointInfoType;
}
@@ -667,10 +671,6 @@ IcePy::createEndpointInfo(const Ice::EndpointInfoPtr& endpointInfo)
{
type = &UDPEndpointInfoType;
}
- else if(Ice::WSEndpointInfoPtr::dynamicCast(endpointInfo))
- {
- type = &WSEndpointInfoType;
- }
else if(Ice::OpaqueEndpointInfoPtr::dynamicCast(endpointInfo))
{
type = &OpaqueEndpointInfoType;