mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add ReadableConnection interface
This commit is contained in:
parent
80cd187c6f
commit
44bf4a2f9e
3 changed files with 9 additions and 4 deletions
|
|
@ -231,7 +231,7 @@ public:
|
|||
readBatch.clear();
|
||||
|
||||
if (state != ConnectionState::CLOSED) {
|
||||
shutdown(descriptor, 2);
|
||||
shutdown(descriptor, SHUT_RDWR);
|
||||
closesocket(descriptor);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue