mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-04-06 06:43:52 +00:00
Do not update G2 cache when nothing has been read from socket
This commit is contained in:
parent
cda4300f34
commit
9f1a1d841a
2 changed files with 4 additions and 1 deletions
|
|
@ -89,6 +89,8 @@ bool CG2ProtocolHandler::readPackets(in_addr& incomingAddress, unsigned int& inc
|
|||
{
|
||||
m_type = GT_NONE;
|
||||
|
||||
incomingPort = 0;
|
||||
|
||||
// No more data?
|
||||
int length = m_socket.read(m_buffer, BUFFER_LENGTH, incomingAddress, incomingPort);
|
||||
if (length <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue