diff options
author | Jose <jose@zeroc.com> | 2019-05-31 22:48:06 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-05-31 22:48:06 +0200 |
commit | dba22f1fa1201bec1dfa8712ca8139e488b43da2 (patch) | |
tree | 8953cd0e7852747287394697861ca2b7fa6e48ac | |
parent | Fix typo (diff) | |
download | ice-dba22f1fa1201bec1dfa8712ca8139e488b43da2.tar.bz2 ice-dba22f1fa1201bec1dfa8712ca8139e488b43da2.tar.xz ice-dba22f1fa1201bec1dfa8712ca8139e488b43da2.zip |
Fix endpoint initialization
-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 { |