Pārlūkot izejas kodu

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

Daniel Alm 7 gadi atpakaļ
vecāks
revīzija
8c45d3fd9a
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)
   }