diff options
Diffstat (limited to 'lib/drb/drb.rb')
-rw-r--r-- | lib/drb/drb.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 8919a946b9..eb2d0d1459 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -564,7 +564,7 @@ module DRb rescue raise(DRbConnError, $!.message, $!.backtrace) end - raise(DRbConnError, 'connection closed') if sz.nil? + raise(DRbConnError, 'connection closed') if str.nil? raise(DRbConnError, 'premature marshal format(can\'t read)') if str.size < sz begin Marshal::load(str) @@ -1395,7 +1395,7 @@ module DRb @result = perform_without_block end @succ = true - if @msg_id == :to_ary && @result.class == Values + if @msg_id == :to_ary @result = DRbArray.new(@result) end return @succ, @result |