# File lib/mongo/server/monitor.rb, line 183 def stop!(wait=false) # Although disconnect! documentation implies a possibility of # failure, all of our disconnects always return true if connection.disconnect! if @thread @thread.kill if wait @thread.join @thread = nil true else !@thread.alive? end else true end else false end end