зеркало из https://github.com/mozilla/gecko-dev.git
Bug 965782 - ignore certain delete_session exceptions in Marionette cleanup, r=wlach
This commit is contained in:
Родитель
aa8ede1cff
Коммит
612063d87d
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче