Skip to content

Commit dd7b40d

Browse files
More graceful disconnect handling
1 parent 61c54e2 commit dd7b40d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mongo/mongo_db_connection.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ defmodule Mongo.MongoDBConnection do
4444
def disconnect(_error, %{connection: {mod, socket}} = state) do
4545
notify_disconnect(state)
4646
mod.close(socket)
47+
:ok
4748
end
4849

4950
defp notify_disconnect(%{connection_type: type, topology_pid: pid, host: host}) do

0 commit comments

Comments
 (0)