lib/ably/realtime/client/outgoing_message_dispatcher.rb in ably-0.6.2 vs lib/ably/realtime/client/outgoing_message_dispatcher.rb in ably-0.7.0
- old
+ new
@@ -18,10 +18,10 @@
private
attr_reader :client, :connection
def can_send_messages?
- connection.connected?
+ connection.connected? || connection.closing?
end
def messages_in_outgoing_queue?
!outgoing_queue.empty?
end