Skip to content

Commit

Permalink
Fix socket on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
janweinstock committed Mar 1, 2024
1 parent 815add4 commit c0bb1c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mwr/utils/socket_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ void socket::send(const void* data, size_t size) {
}

void socket::recv(void* data, size_t size) {
lock_guard<mutex> guard(m_mtx);
if (m_conn == INVALID_SOCKET)
MWR_REPORT("error receiving data: not connected");

Expand Down

0 comments on commit c0bb1c2

Please sign in to comment.