lib/wc3_protocol/broadcast.rb in wc3_protocol-0.0.1 vs lib/wc3_protocol/broadcast.rb in wc3_protocol-0.0.2

- old
+ new

@@ -73,9 +73,10 @@ end end rescue Timeout::Error # messages received until timeout end + @udp_socket.close # ensure socket is closed after raw_messages.map { |m| Wc3Protocol::Message.new(raw_msg: m.message, raw_sender_info: m.sender_info) } end end end \ No newline at end of file