summaryrefslogtreecommitdiff
path: root/src/network/core/tcp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/tcp.cpp')
-rw-r--r--src/network/core/tcp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp
index a2e31b53d..3dc2a3fac 100644
--- a/src/network/core/tcp.cpp
+++ b/src/network/core/tcp.cpp
@@ -217,6 +217,8 @@ Packet *NetworkTCPSocketHandler::ReceivePacket()
*/
bool NetworkTCPSocketHandler::CanSendReceive()
{
+ assert(this->sock != INVALID_SOCKET);
+
fd_set read_fd, write_fd;
struct timeval tv;