Skip to content

Commit

Permalink
Merge branch 'jo-disconnect-reconnect' into master/6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Aug 8, 2020
2 parents 37ab113 + d51d7ac commit 24517c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/MongoClient/Cluster.swift
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ public final class MongoCluster: MongoConnectionPool {
self.isClosed = true
let connections = self.pool
self.pool = []
self.discoveredHosts = []

let closed = connections.map { remote in
return remote.connection.close()
Expand Down

0 comments on commit 24517c2

Please sign in to comment.