Skip to content

Commit 9f2a721

Browse files
committed
avoid ProcessLookupError for already-terminated processes
1 parent 7e89261 commit 9f2a721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tetherback/tetherback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ def uevent_dict(path):
296296
with open(fn+'.md5', 'w') as md5out:
297297
print('%s *%s' % (localmd5, fn), file=md5out)
298298

299+
child.wait()
299300
if args.transport==adbxp.tcp:
300301
s.close()
301302
if not really_unforward(port):
302303
raise RuntimeError('could not remove ADB-forward for TCP port %d' % port)
303-
child.terminate()

0 commit comments

Comments
 (0)