瀏覽代碼

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

Daniel Alm 7 年之前
父節點
當前提交
8c45d3fd9a
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)
   }