##// END OF EJS Templates
commandserver: remove redundant "if True" block
Yuya Nishihara -
r40913:9f00de4d default
parent child Browse files
Show More
@@ -570,7 +570,6 b' class unixforkingservice(object):'
570
570
571 def _acceptnewconnection(self, sock, selector):
571 def _acceptnewconnection(self, sock, selector):
572 h = self._servicehandler
572 h = self._servicehandler
573 if True:
574 try:
573 try:
575 conn, _addr = sock.accept()
574 conn, _addr = sock.accept()
576 except socket.error as inst:
575 except socket.error as inst:
@@ -581,8 +580,8 b' class unixforkingservice(object):'
581 pid = os.fork()
580 pid = os.fork()
582 if pid:
581 if pid:
583 try:
582 try:
584 self.ui.log(b'cmdserver',
583 self.ui.log(b'cmdserver', b'forked worker process (pid=%d)\n',
585 b'forked worker process (pid=%d)\n', pid)
584 pid)
586 self._workerpids.add(pid)
585 self._workerpids.add(pid)
587 h.newconnection()
586 h.newconnection()
588 finally:
587 finally:
General Comments 0
You need to be logged in to leave comments. Login now