comparison src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 421:660ac2d2003b

break out of infinite loop
author Carl Byington <carl@five-ten-sg.com>
date Wed, 29 Oct 2014 18:03:42 -0700
parents 39533be5cbe9
children 651aff5a46c7
comparison
equal deleted inserted replaced
420:e5f7c2584296 421:660ac2d2003b
177 int tries = 0; 177 int tries = 0;
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 break;
182 } 183 }
183 catch (Exception e) { 184 catch (Exception e) {
184 monitor_socket = null; 185 monitor_socket = null;
185 Log.e(TAG, "exception connecting to monitor socket", e); 186 Log.e(TAG, "exception connecting to monitor socket", e);
186 tries = tries + 1; 187 tries = tries + 1;