From: Michal 'vorner' Vaner Date: Mon, 23 Jan 2012 16:05:16 +0000 (+0100) Subject: [1454] Reorder logging X-Git-Tag: trac2351_base~275^2~7^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8fec5c4dd4b0280dd393c10718f516217435efe;p=thirdparty%2Fkea.git [1454] Reorder logging So the close happens every time. --- diff --git a/src/bin/ddns/ddns.py.in b/src/bin/ddns/ddns.py.in index c5b22e95a5..7d30132060 100755 --- a/src/bin/ddns/ddns.py.in +++ b/src/bin/ddns/ddns.py.in @@ -180,9 +180,9 @@ class DDNSServer: except isc.util.io.socketsession.SocketSessionError as se: # No matter why this failed, the connection is in unknown, possibly # broken state. So, we close the socket and remove the receiver. - logger.warn(DDNS_DROP_CONN, fileno, se) - socket.close() del self._socksession_receivers[fileno] + socket.close() + logger.warn(DDNS_DROP_CONN, fileno, se) def run(self): '''