修复了q/exit无法退出的问题
This commit is contained in:
@@ -205,7 +205,12 @@ int main(int argn,char* argc[]){
|
|||||||
std::cout.write(buffer,size);
|
std::cout.write(buffer,size);
|
||||||
}
|
}
|
||||||
if(strcmp(cmd,"exit")==0||strcmp(cmd,"q")==0){
|
if(strcmp(cmd,"exit")==0||strcmp(cmd,"q")==0){
|
||||||
break;
|
close(sockfd);
|
||||||
|
EVP_PKEY_free(local_key);
|
||||||
|
EVP_PKEY_free(peer_key);
|
||||||
|
stop_flag = true;
|
||||||
|
t.join();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(sockfd);
|
close(sockfd);
|
||||||
|
|||||||
Reference in New Issue
Block a user