aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/salticidae/network.h')
-rw-r--r--include/salticidae/network.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/salticidae/network.h b/include/salticidae/network.h
index 5b4cd7d..c3b9e79 100644
--- a/include/salticidae/network.h
+++ b/include/salticidae/network.h
@@ -584,7 +584,7 @@ void MsgNetwork<OpcodeType>::on_read(const ConnPool::conn_t &_conn) {
}
}
}
- if (conn->ready_recv && recv_buffer.size() < conn->max_recv_buff_size)
+ if (conn->ready_recv && recv_buffer.len() < conn->max_recv_buff_size)
{
/* resume reading from socket */
conn->ev_socket.del();