summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-05-31 22:48:06 +0200
committerJose <jose@zeroc.com>2019-05-31 22:48:06 +0200
commitdba22f1fa1201bec1dfa8712ca8139e488b43da2 (patch)
tree8953cd0e7852747287394697861ca2b7fa6e48ac
parentFix typo (diff)
downloadice-dba22f1fa1201bec1dfa8712ca8139e488b43da2.tar.bz2
ice-dba22f1fa1201bec1dfa8712ca8139e488b43da2.tar.xz
ice-dba22f1fa1201bec1dfa8712ca8139e488b43da2.zip
Fix endpoint initialization
-rw-r--r--swift/src/Ice/ConnectionI.swift5
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 {