]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_xfrout] counting closed unixdomain sockets doesn't need to be inside the try...
authorNaoki Kambe <kambe@jprs.co.jp>
Wed, 6 Feb 2013 12:01:07 +0000 (21:01 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Wed, 6 Feb 2013 12:01:07 +0000 (21:01 +0900)
src/bin/xfrout/xfrout.py.in

index a3737190cc6c859a264928368896a9c925b41edf..a9b6e78d24636884bd383342a8f9e1e5e54f894f 100755 (executable)
@@ -895,9 +895,9 @@ class UnixSockServer(socketserver_mixin.NoPollMixIn,
     def shutdown(self):
         self._write_sock.send(b"shutdown") #terminate the xfrout session thread
         super().shutdown() # call the shutdown() of class socketserver_mixin.NoPollMixIn
+        # count closed unixsockets
+        self._counters.inc('socket', 'unixdomain', 'close')
         try:
-            # count closed unixsockets
-            self._counters.inc('socket', 'unixdomain', 'close')
             os.unlink(self._sock_file)
         except Exception as e:
             logger.error(XFROUT_REMOVE_UNIX_SOCKET_FILE_ERROR, self._sock_file, str(e))