diff options
-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 a948c700..777e7cbc 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: # Connection refused + if e[0] == 61 or e[0] == 107: # 61 == Connection refused and 107 == 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) + ':' |