Browse Source

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

Daniel Alm 7 years ago
parent
commit
8c45d3fd9a
1 changed files with 1 additions and 0 deletions
  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)
   }