зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1009862 - Close socket in devicemanagerSUT on timeout. r=gbrown
This commit is contained in:
Родитель
edbf6a6b34
Коммит
21f6cecb25
|
@ -242,6 +242,8 @@ class DeviceManagerSUT(DeviceManager):
|
|||
errStr = 'connection closed'
|
||||
timer += select_timeout
|
||||
if timer > timeout:
|
||||
self._sock.close()
|
||||
self._sock = None
|
||||
raise DMError("Automation Error: Timeout in command %s" % cmd['cmd'], fatal=True)
|
||||
except socket.error, err:
|
||||
socketClosed = True
|
||||
|
|
Загрузка…
Ссылка в новой задаче