# File lib/stomp_server/queue/activerecord_queue.rb, line 52
  def dequeue(queue_name)
    return nil unless @frames[queue_name] && !@frames[queue_name][:frames].empty?
    frame = @frames[queue_name][:frames].shift
    remove_from_store(frame.headers['message-id'])
    return frame
  end