Skip to content

Commit

Permalink
Use a list for listeners, not a set.
Browse files Browse the repository at this point in the history
This allows us to guarantee ordering of message delivery.
  • Loading branch information
ConradIrwin committed Jul 2, 2011
1 parent 58626c0 commit 9bbaf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/em-imap/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def add_response_handler(&block)
end

def post_init
@listeners = Set.new
@listeners = []
super
listen_for_greeting
listen_for_failure
Expand Down

0 comments on commit 9bbaf06

Please sign in to comment.