]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1454] Reorder logging
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 23 Jan 2012 16:05:16 +0000 (17:05 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 23 Jan 2012 16:05:16 +0000 (17:05 +0100)
So the close happens every time.

src/bin/ddns/ddns.py.in

index c5b22e95a57022ea6df4943bba324675e09e8a37..7d30132060b8c0f190fa7174cd1c6689d1175b4c 100755 (executable)
@@ -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):
         '''