Skip to content

Commit 65173df

Browse files
authored
fix: Common Runtime Kit Initialize (#299)
1 parent b3b45a6 commit 65173df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Packages/ClientRuntime/Sources/Networking/Http/CRT/SDKDefaultIO.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public final class SDKDefaultIO {
1717
public let tlsContext: TlsContext
1818

1919
private init() {
20+
AwsCommonRuntimeKit.initialize()
2021
self.eventLoopGroup = EventLoopGroup(threadCount: 0)
2122
self.hostResolver = DefaultHostResolver(eventLoopGroup: eventLoopGroup,
2223
maxHosts: 8,
@@ -46,4 +47,8 @@ public final class SDKDefaultIO {
4647
""")
4748
}
4849
}
50+
51+
deinit {
52+
AwsCommonRuntimeKit.cleanUp()
53+
}
4954
}

0 commit comments

Comments
 (0)