From: Naoki Kambe Date: Wed, 6 Feb 2013 12:01:07 +0000 (+0900) Subject: [2225_xfrout] counting closed unixdomain sockets doesn't need to be inside the try... X-Git-Tag: bind10-1.1.0beta1-release~72^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ed2eb91030b9935e97cd0fbdb6451adae34d65e;p=thirdparty%2Fkea.git [2225_xfrout] counting closed unixdomain sockets doesn't need to be inside the try block --- diff --git a/src/bin/xfrout/xfrout.py.in b/src/bin/xfrout/xfrout.py.in index a3737190cc..a9b6e78d24 100755 --- a/src/bin/xfrout/xfrout.py.in +++ b/src/bin/xfrout/xfrout.py.in @@ -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))