Skip to content

Commit a35b9bb

Browse files
author
Divjot Arora
committed
add to wg before running update routine
1 parent 47c775b commit a35b9bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/mongo/driver/topology/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ func (s *Server) Connect(updateCallback updateTopologyCallback) error {
192192
s.desc.Store(description.NewDefaultServer(s.address))
193193
s.updateTopologyCallback.Store(updateCallback)
194194
s.rttMonitor.connect()
195-
go s.update()
196195
s.closewg.Add(1)
196+
go s.update()
197197
return s.pool.connect()
198198
}
199199

0 commit comments

Comments
 (0)