Skip to content

Commit d920e8c

Browse files
committed
try to stop any loose ends if the server can't come up
1 parent beca293 commit d920e8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

browsermobproxy/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def start(self):
5151
time.sleep(0.5)
5252
count += 1
5353
if count == 30:
54+
self.stop()
5455
raise Exception("Can't connect to Browsermob-Proxy")
5556

5657
def stop(self):

0 commit comments

Comments
 (0)