Parcourir la source

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

Daniel Alm il y a 7 ans
Parent
commit
8c45d3fd9a
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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)
   }