Skip to content

Commit 44784a9

Browse files
committed
Fixed Issue dtmilano#67: Runaway Timer
- Version 4.7.2 - Solution provided by sk87287
1 parent 548df3c commit 44784a9

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

AndroidViewClient/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages
44

55
setup(name='androidviewclient',
6-
version='4.7.1',
6+
version='4.7.2',
77
description='''AndroidViewClient is a 100% pure python tool that
88
simplifies test script creation providing higher level operations and the ability of
99
obtaining the tree of Views present at any given moment on the device or emulator screen.

AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '4.7.1'
20+
__version__ = '4.7.2'
2121

2222
import sys
2323
import warnings
@@ -168,10 +168,12 @@ def __checkOk(self):
168168
recv = self.socket.recv(4)
169169
if DEBUG:
170170
print >> sys.stderr, " __checkOk: recv=", repr(recv)
171-
if recv != OKAY:
172-
error = self.socket.recv(1024)
173-
raise RuntimeError("ERROR: %s %s" % (repr(recv), error))
174-
self.setAlarm(0)
171+
try:
172+
if recv != OKAY:
173+
error = self.socket.recv(1024)
174+
raise RuntimeError("ERROR: %s %s" % (repr(recv), error))
175+
finally:
176+
self.setAlarm(0)
175177
if DEBUG:
176178
print >> sys.stderr, " __checkOk: returning True"
177179
return True

0 commit comments

Comments
 (0)