lib/rmpd/commands/miscellaneous.rb in rmpd-1.1.15 vs lib/rmpd/commands/miscellaneous.rb in rmpd-1.1.16

- old
+ new

@@ -11,11 +11,16 @@ simple_command :ping simple_command :stats simple_command :status def close - send_command_without_reconnect("close") - @socket.synchronize {@socket.close} + @socket_mu.lock + begin + send_command("close") + @socket.close + ensure + @socket_mu.unlock + end end simple_command :command_list simple_command :command_list_ok