diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-07-16 15:56:11 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-07-16 15:56:11 +0200 |
commit | 135456f1a06ed040264173b2cb81a9476f40848b (patch) | |
tree | 4fa255f47941380cc3509724b07d06126c45c1f5 | |
parent | d49e2d5970f6cba4750118153a141f53dadadc72 (diff) |
Improve previous fix to take into account different error numbers.
-rwxr-xr-x | tools/ffdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ffdb.py b/tools/ffdb.py index 0a521af1..93fae518 100755 --- a/tools/ffdb.py +++ b/tools/ffdb.py @@ -562,7 +562,7 @@ def main(): try: b2g_socket.connect((HOST, PORT)) except Exception, e: - if e[0] == 61 or e[0] == 107: # 61 == Connection refused and 107 == Transport endpoint is not connected + if e[0] == 61 or e[0] == 107 or e[0] == 111: # 61 == Connection refused and 107+111 == Transport endpoint is not connected if (HOST == 'localhost' or HOST == '127.0.0.1') and not connect_to_simulator: cmd = [ADB, 'forward', 'tcp:'+str(PORT), 'localfilesystem:/data/local/debugger-socket'] print 'Connection to ' + HOST + ':' + str(PORT) + ' refused, attempting to forward device debugger-socket to local address by calling ' + str(cmd) + ':' |