Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 412:057854c77217
wait for monitor socket to be created
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 24 Oct 2014 17:49:50 -0700 |
parents | 8bff0bfaec3a |
children | 4dcc071e1feb |
comparison
equal
deleted
inserted
replaced
411:8bff0bfaec3a | 412:057854c77217 |
---|---|
178 while (tries < 10) { | 178 while (tries < 10) { |
179 try { | 179 try { |
180 Thread.sleep(100); | 180 Thread.sleep(100); |
181 monitor_socket = new Socket(serverAddr, MONITORPORT); | 181 monitor_socket = new Socket(serverAddr, MONITORPORT); |
182 } | 182 } |
183 catch (IOException e) { | 183 catch (Exception e) { |
184 Log.e(TAG, "exception connecting to monitor socket", e); | 184 Log.e(TAG, "exception connecting to monitor socket", e); |
185 tries = tries + 1; | 185 tries = tries + 1; |
186 } | 186 } |
187 } | 187 } |
188 Log.i(TAG, "connected to monitor socket, send init " + init); | 188 Log.i(TAG, "connected to monitor socket, send init " + init); |