diff options
Diffstat (limited to 'swift/src')
-rw-r--r-- | swift/src/Ice/ConnectionI.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swift/src/Ice/ConnectionI.swift b/swift/src/Ice/ConnectionI.swift index 49a8cfd794e..22d8c4e9ab2 100644 --- a/swift/src/Ice/ConnectionI.swift +++ b/swift/src/Ice/ConnectionI.swift @@ -75,7 +75,10 @@ class ConnectionI: LocalObject<ICEConnection>, Connection { } func getEndpoint() -> Endpoint { - return EndpointI(handle: handle.getEndpoint()) + let handle = self.handle.getEndpoint() + return endpoint.getSwiftObject(EndpointI.self) { + EndpointI(handle: handle) + } } func flushBatchRequests(_ compress: CompressBatch) throws { |