lib/onstomp/open-uri/client_extensions.rb in onstomp-1.0.7 vs lib/onstomp/open-uri/client_extensions.rb in onstomp-1.0.8

- old
+ new

@@ -37,10 +37,10 @@ subscribe_to_auto_destination loop do yield openuri_message_queue.shift end else - OnStomp::ENUMERATOR_KLASS.new(self) + self.to_enum end end # Returns `n` frames read from the subscription. If `n` is ommited, # the next frame is returned, otherwise an array of the next `n` frames