Skip to content

Commit

Permalink
avoid ProcessLookupError for already-terminated processes
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Jun 7, 2016
1 parent 7e89261 commit 9f2a721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetherback/tetherback.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ def uevent_dict(path):
with open(fn+'.md5', 'w') as md5out:
print('%s *%s' % (localmd5, fn), file=md5out)

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

0 comments on commit 9f2a721

Please sign in to comment.