fix: 클라이언트 강제 종료 처리 추가.
TODO: 서버 비동기 처리?
This commit is contained in:
parent
ad5c01fd86
commit
36062b718f
1 changed files with 3 additions and 1 deletions
|
|
@ -74,7 +74,9 @@ void BaseClient::StartReceive() {
|
||||||
|
|
||||||
void BaseClient::StopReceive() {
|
void BaseClient::StopReceive() {
|
||||||
isRunning_ = false;
|
isRunning_ = false;
|
||||||
socket_.close();
|
boost::system::error_code ec;
|
||||||
|
socket_.shutdown(tcp::socket::shutdown_both, ec);
|
||||||
|
socket_.close(ec);
|
||||||
receiveThread_.request_stop();
|
receiveThread_.request_stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue