mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
Fix to #380. DialogSocket was crashing (SIGSEGV) when a timeout occours.
This commit is contained in:
@@ -239,8 +239,11 @@ void DialogSocket::refill()
|
|||||||
if (_pNext == _pEnd)
|
if (_pNext == _pEnd)
|
||||||
{
|
{
|
||||||
int n = receiveBytes(_pBuffer, RECEIVE_BUFFER_SIZE);
|
int n = receiveBytes(_pBuffer, RECEIVE_BUFFER_SIZE);
|
||||||
_pNext = _pBuffer;
|
if (n > 0)
|
||||||
_pEnd = _pBuffer + n;
|
{
|
||||||
|
_pNext = _pBuffer;
|
||||||
|
_pEnd = _pBuffer + n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user