From 684972e44086f9a8c1690fb1472d6d5dadd475fa Mon Sep 17 00:00:00 2001 From: nishiki Date: Wed, 5 Feb 2014 22:47:20 +0100 Subject: [PATCH] clean old code --- lib/Server.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Server.rb b/lib/Server.rb index 85d8f98..2d55de0 100644 --- a/lib/Server.rb +++ b/lib/Server.rb @@ -31,11 +31,6 @@ class Server next 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? @log.warning("#{client.peeraddr[3]} is disconnected because no password or no gpg_key") close_connection(client) @@ -65,6 +60,7 @@ class Server end rescue Exception => e + puts "Impossible to start the server: #{e}" @log.error("Impossible to start the server: #{e}") exit 2 end