Skip to content
Snippets Groups Projects
Commit dc0fc459 authored by hiroshisuga's avatar hiroshisuga Committed by Calvin Walton
Browse files

events_archiver.rb: Handle an empty meeting_metadata hash from redis

On my server 2.3 alpha, the method metadata_for(meeting_id) gives back {}
(empty Hash). Thus "return if meeting_metadata.nil?" does not occur.

Does @redis.hgetall give {} instead of nil, even though there is a comment in
node_modules/redis/lib/utils.js "hgetall converts its replies to an Object. If
the reply is empty, null is returned"???
parent b03f2949
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,7 @@ module BigBlueButton
end
meeting_metadata = @redis.metadata_for(meeting_id)
return if meeting_metadata.nil?
return if meeting_metadata.nil? || meeting_metadata.empty?
# Fill in/update the top-level meeting element
if meeting.nil?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment