Permalink
Browse files

Reset primary_server when remove_server

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
znz committed Oct 20, 2018
1 parent 8449f49 commit a4c4560f323a8c82e761ac29da7716ae072fb43d
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/drb/drb.rb
@@ -1866,6 +1866,11 @@ def regist_server(server)
# Removes +server+ from the list of registered servers.
def remove_server(server)
@server.delete(server.uri)
mutex.synchronize do
if @primary_server == server
@primary_server = nil
end
end
end
module_function :remove_server

0 comments on commit a4c4560

Please sign in to comment.