Skip to content

Commit 4afe301

Browse files
yezhizhenservo-wpt-sync
authored andcommitted
Do not reuse connection
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
1 parent ec28898 commit 4afe301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/wptrunner/wptrunner/browsers/servodriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ def is_alive(self):
144144
return True
145145

146146
def stop(self, force=False):
147-
conn = HTTPConnection(self.host, self.port)
148147
while self.is_alive():
149148
self.logger.info("Trying to shut down gracefully by extension command")
150149
while True:
151150
try:
151+
conn = HTTPConnection(self.host, self.port)
152152
conn.request("DELETE", "/session/dummy-session-id/servo/shutdown")
153153
res = conn.getresponse()
154154
self.logger.info(f"Got response status for shutdown command: {res.status}")

0 commit comments

Comments
 (0)