Skip to content

Commit 542ae63

Browse files
author
Kong Zhaoning
committed
updates
1 parent 322cba1 commit 542ae63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TextConferencingLab/LAB1/server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ void *new_client(void *arg) {
7272
perror("error recv\n");
7373
exit(1);
7474
}
75+
if(bytesRecvd == 0) toExit = 1;
7576
buffer[bytesRecvd] = '\0';
7677

7778
bool toSend = 0;// Whether to send pktSend after this loop

0 commit comments

Comments
 (0)