summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-06-20 04:30:44 +0200
committerGravatar Nikias Bassen2009-06-20 04:30:44 +0200
commit23a07f6bc7e14b325f7b3ea29ebe0eeb1d5635b4 (patch)
tree82717a541547fbb1130507f604fc4b3f67f4b9ad /src
parent94d700159d010176a57640d6f59476aaf43875fc (diff)
downloadusbmuxd-23a07f6bc7e14b325f7b3ea29ebe0eeb1d5635b4.tar.gz
usbmuxd-23a07f6bc7e14b325f7b3ea29ebe0eeb1d5635b4.tar.bz2
removed debugging output
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 8e27d8f..8f1eeec 100644
--- a/src/main.c
+++ b/src/main.c
@@ -847,23 +847,20 @@ static void *usbmuxd_client_init_thread(void *arg)
}
pthread_mutex_unlock(&cur_dev->mutex);
- // wait for the initial handshake (SYN->SYN+ACK->ACKto complete
+ // wait for the initial handshake (SYN->SYN+ACK->ACK) to complete)
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 100000000;
i = 0;
- printf("waiting for handshake to complete...\n");
while (i < 10000) {
if (usbmux_is_connected(cdata->muxclient)) {
- printf("handshake done\n");
break;
}
nanosleep(&ts, NULL);
i+=100;
}
if (!usbmux_is_connected(cdata->muxclient)) {
- printf("handshake failed\n");
usbmuxd_send_result(cdata->socket, c_req->header.tag, -ENOTCONN);
goto leave;
}