Commit f46a0b39 authored by Fong's avatar Fong
Browse files

don't call pthread_join

parent f4a0e4e3
......@@ -104,7 +104,7 @@ int main(int argc, char** argv)
}
if (peer_id) {
printf("connecting to peer %d", peer_id);
printf("connecting to peer %d\n", peer_id);
if (connect_to_peer(&c, peer_id) < 0) {
printf("failed to connect to peer %d\n", peer_id);
......@@ -112,5 +112,8 @@ int main(int argc, char** argv)
}
}
for (; ;) {
}
return 0;
}
......@@ -328,7 +328,7 @@ int init(struct peer_info self, struct sockaddr_in punch_server, client* c) {
pthread_t thread_id;
pthread_create(&thread_id, NULL, server_notify_handler, (void*)&server_sock);
pthread_join(thread_id, NULL);
//pthread_join(thread_id, NULL);
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment