mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965782 - ignore certain delete_session exceptions in Marionette cleanup, r=wlach
This commit is contained in:
parent
207d08537d
commit
f42da61fc8
@ -517,7 +517,14 @@ class Marionette(object):
|
||||
|
||||
def cleanup(self):
|
||||
if self.session:
|
||||
self.delete_session()
|
||||
try:
|
||||
self.delete_session()
|
||||
except (MarionetteException, socket.error):
|
||||
# These exceptions get thrown if the Marionette server
|
||||
# hit an exception/died or the connection died. We can
|
||||
# do no further server-side cleanup in this case.
|
||||
pass
|
||||
self.session = None
|
||||
if self.emulator:
|
||||
self.emulator.close()
|
||||
if self.instance:
|
||||
|
Loading…
Reference in New Issue
Block a user