lib/blather/client/client.rb in blather-0.8.5 vs lib/blather/client/client.rb in blather-0.8.6
- old
+ new
@@ -166,10 +166,10 @@
write stanza
end
# Close the connection
def close
- self.stream.close_connection_after_writing
+ EM.next_tick { self.stream.close_connection_after_writing }
end
# @private
def post_init(stream, jid = nil)
@stream = stream