Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6041 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 11, 2005, 2:48:09 AM (19 years ago)
Author:
rennerc
Message:

network_socket: fixed a bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_socket.cc

    r6039 r6041  
    272272
    273273    //if buffer is full
    274     if (nbytestoread<=0)
     274    if (nbytestoread<=0 || !self->tcpSocket)
    275275    {
    276276      SDL_Delay(_MSECONDS_SLEEP_FULL_BUFFER);
     
    294294      SDL_mutexV(self->socketMutex);
    295295      SDL_mutexV(self->incomingBufferMutex);
    296       break;
     296      continue;
    297297    }
    298298
     
    341341
    342342    //if buffer is full
    343     if (nbytestowrite<=0)
     343    if (nbytestowrite<=0 || !self->tcpSocket)
    344344    {
    345345      SDL_Delay(_MSECONDS_SLEEP_EMPTY_BUFFER);
     
    369369
    370370      SDL_mutexV(self->socketMutex);
    371       break;
     371      continue;
    372372    }
    373373
Note: See TracChangeset for help on using the changeset viewer.