Explorar o código

Make sure to shut down a channel's completion queue once it is deallocated.

Daniel Alm %!s(int64=7) %!d(string=hai) anos
pai
achega
8c45d3fd9a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Sources/SwiftGRPC/Core/Channel.swift

+ 1 - 0
Sources/SwiftGRPC/Core/Channel.swift

@@ -66,6 +66,7 @@ public class Channel {
   }
 
   deinit {
+    completionQueue.shutdown()
     cgrpc_channel_destroy(underlyingChannel)
   }