소스 검색

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)
   }