Show More
@@ -180,10 +180,11 b' class KernelApp(BaseIPythonApplication):' | |||
|
180 | 180 | s.bind("tcp://%s:%i" % (self.ip, port)) |
|
181 | 181 | elif self.transport == 'ipc': |
|
182 | 182 | if port <= 0: |
|
183 |
|
|
|
183 | port = 1 | |
|
184 | path = "%s-%i" % (self.ip, port) | |
|
185 | while os.path.exists(path): | |
|
186 | port = port + 1 | |
|
184 | 187 | path = "%s-%i" % (self.ip, port) |
|
185 | if not os.path.exists(path): | |
|
186 | break | |
|
187 | 188 | else: |
|
188 | 189 | path = "%s-%i" % (self.ip, port) |
|
189 | 190 | s.bind("ipc://%s" % path) |
General Comments 0
You need to be logged in to leave comments.
Login now