Browse files

Use a list for listeners, not a set.

This allows us to guarantee ordering of message delivery.
  • Loading branch information...
1 parent 58626c0 commit 9bbaf065f6b51dcbd36f35996b0bce0f125f0853 @ConradIrwin ConradIrwin committed Jul 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/em-imap/connection.rb
View
2 lib/em-imap/connection.rb
@@ -72,7 +72,7 @@ def add_response_handler(&block)
end
def post_init
- @listeners = Set.new
+ @listeners = []
super
listen_for_greeting
listen_for_failure

0 comments on commit 9bbaf06

Please sign in to comment.