mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
Fixed hanging bug
This commit is contained in:
parent
1adcdea6d1
commit
027297933b
@ -36,6 +36,7 @@ namespace net {
|
||||
#ifdef _WIN32
|
||||
closesocket(_sock);
|
||||
#else
|
||||
::shutdown(_sock, SHUT_RDWR);
|
||||
::close(_sock);
|
||||
#endif
|
||||
}
|
||||
|
@ -11,6 +11,8 @@ namespace spyserver {
|
||||
client = std::move(conn);
|
||||
output = out;
|
||||
|
||||
output->clearWriteStop();
|
||||
|
||||
sendHandshake("SDR++");
|
||||
|
||||
client->readAsync(sizeof(SpyServerMessageHeader), (uint8_t*)&receivedHeader, dataHandler, this);
|
||||
@ -31,6 +33,7 @@ namespace spyserver {
|
||||
}
|
||||
|
||||
void SpyServerClientClass::close() {
|
||||
output->stopWriter();
|
||||
client->close();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user