1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merged a patch from Alessandro Di Maria in [ruby-core:22560].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2009-03-01 15:57:33 +00:00
parent d79dc0f6a0
commit 4104010c88
2 changed files with 16 additions and 10 deletions

View file

@ -1,3 +1,9 @@
Mon Mar 2 00:56:45 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/observer.rb: The module oberservable uses now a hash to
store listeners. merged a patch from Alessandro Di Maria in
[ruby-core:22560].
Sun Mar 1 22:59:41 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/raddrinfo.c: suppress warnings.

View file

@ -6,16 +6,16 @@ module DRb
def notify_observers(*arg)
if defined? @observer_state and @observer_state
if defined? @observer_peers
for i in @observer_peers.dup
begin
i.update(*arg)
rescue
delete_observer(i)
end
end
end
@observer_state = false
if defined? @observer_peers
@observer_peers.each do |observer, method|
begin
observer.send(method, *arg)
rescue
delete_observer(observer)
end
end
end
@observer_state = false
end
end
end