- private synchronized void wait_connected() throws InterruptedException, IOException {
- if (input == null) {
- if (D) Log.d(TAG, "wait_connected...");
- wait();
- if (D) Log.d(TAG, "wait_connected done");
- if (input == null) throw new IOException();
- }
- }
-
- private void connection_lost() {
- if (D) Log.e(TAG, "Connection lost during I/O");
- handler.obtainMessage(TelemetryService.MSG_DISCONNECTED).sendToTarget();
- }