diff options
Diffstat (limited to 'src/core/netclient.cc')
-rw-r--r-- | src/core/netclient.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/netclient.cc b/src/core/netclient.cc index 937cf21..0f56bb9 100644 --- a/src/core/netclient.cc +++ b/src/core/netclient.cc @@ -97,7 +97,7 @@ void NetClient::send(std::string const &msg) void NetClient::transmit() { - while (sendq.size() && !error()) { + while (sendq.size() && valid() && !error()) { TCPClient::send(sendq.substr(0, net::FRAMESIZE-1)); if (sendq.size() < net::FRAMESIZE) { sendq.clear(); |