Show More
@@ -472,7 +472,12 b' class ConnectionFileMixin(LoggingConfigurable):' | |||||
472 | """Cleanup ipc files if we wrote them.""" |
|
472 | """Cleanup ipc files if we wrote them.""" | |
473 | if self.transport != 'ipc': |
|
473 | if self.transport != 'ipc': | |
474 | return |
|
474 | return | |
475 | for port in self.ports: |
|
475 | # handle self.ports as a list [port1, ...] or dictionary | |
|
476 | # {label1: port1, ...} | |||
|
477 | ports = self.ports | |||
|
478 | if isinstance(ports, dict): | |||
|
479 | ports = ports.values() | |||
|
480 | for port in ports: | |||
476 | ipcfile = "%s-%i" % (self.ip, port) |
|
481 | ipcfile = "%s-%i" % (self.ip, port) | |
477 | try: |
|
482 | try: | |
478 | os.remove(ipcfile) |
|
483 | os.remove(ipcfile) |
General Comments 0
You need to be logged in to leave comments.
Login now