# File lib/packet/packet_connection.rb, line 34 def close_connection_after_writing connection.flush unless connection.closed? close_connection end