1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 15:43:04 +00:00

clean old code

This commit is contained in:
nishiki 2014-02-05 22:47:20 +01:00
parent bed8cbb8b6
commit 684972e440

View file

@ -31,11 +31,6 @@ class Server
next next
end end
if !msg['action'].nil? && msg['action'] == 'close'
@log.info("#{client.peeraddr[3]} is disconnected")
close_connection(client)
end
if msg['gpg_key'].nil? || msg['gpg_key'].empty? || msg['password'].nil? || msg['password'].empty? if msg['gpg_key'].nil? || msg['gpg_key'].empty? || msg['password'].nil? || msg['password'].empty?
@log.warning("#{client.peeraddr[3]} is disconnected because no password or no gpg_key") @log.warning("#{client.peeraddr[3]} is disconnected because no password or no gpg_key")
close_connection(client) close_connection(client)
@ -65,6 +60,7 @@ class Server
end end
rescue Exception => e rescue Exception => e
puts "Impossible to start the server: #{e}"
@log.error("Impossible to start the server: #{e}") @log.error("Impossible to start the server: #{e}")
exit 2 exit 2
end end