axeld + bonefish:
_WaitForEstablished() must also accept states implying that the state has been established at some point. Fixes bug #2172. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25526 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1117,7 +1117,7 @@ TCPEndpoint::_MarkEstablished()
|
|||||||
status_t
|
status_t
|
||||||
TCPEndpoint::_WaitForEstablished(MutexLocker &locker, bigtime_t timeout)
|
TCPEndpoint::_WaitForEstablished(MutexLocker &locker, bigtime_t timeout)
|
||||||
{
|
{
|
||||||
while (fState != ESTABLISHED) {
|
while (fState < ESTABLISHED) {
|
||||||
if (socket->error != B_OK)
|
if (socket->error != B_OK)
|
||||||
return socket->error;
|
return socket->error;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user