There was an error while loading. Please reload this page.
1 parent 322cba1 commit 542ae63Copy full SHA for 542ae63
TextConferencingLab/LAB1/server.c
@@ -72,6 +72,7 @@ void *new_client(void *arg) {
72
perror("error recv\n");
73
exit(1);
74
}
75
+if(bytesRecvd == 0) toExit = 1;
76
buffer[bytesRecvd] = '\0';
77
78
bool toSend = 0;// Whether to send pktSend after this loop
0 commit comments