lib/softwear/auth/standard_model.rb in softwear-lib-2.1.6 vs lib/softwear/auth/standard_model.rb in softwear-lib-2.1.7
- old
+ new
@@ -179,9 +179,10 @@
# handles a broken socket. #query and #force_query call this function.
# ====================
def raw_query(message)
begin
default_socket.puts message
+ default_socket.flush
rescue Errno::EPIPE => e
@default_socket = TCPSocket.open(auth_server_host, auth_server_port)
@default_socket.puts message
end