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:
Ingo Weinhold 2008-05-17 11:56:25 +00:00
parent fbe0c27a94
commit 25d0a0841f

View File

@ -1117,7 +1117,7 @@ TCPEndpoint::_MarkEstablished()
status_t
TCPEndpoint::_WaitForEstablished(MutexLocker &locker, bigtime_t timeout)
{
while (fState != ESTABLISHED) {
while (fState < ESTABLISHED) {
if (socket->error != B_OK)
return socket->error;