- Timestamp:
- Dec 11, 2005, 2:48:09 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r6039 r6041 272 272 273 273 //if buffer is full 274 if (nbytestoread<=0 )274 if (nbytestoread<=0 || !self->tcpSocket) 275 275 { 276 276 SDL_Delay(_MSECONDS_SLEEP_FULL_BUFFER); … … 294 294 SDL_mutexV(self->socketMutex); 295 295 SDL_mutexV(self->incomingBufferMutex); 296 break;296 continue; 297 297 } 298 298 … … 341 341 342 342 //if buffer is full 343 if (nbytestowrite<=0 )343 if (nbytestowrite<=0 || !self->tcpSocket) 344 344 { 345 345 SDL_Delay(_MSECONDS_SLEEP_EMPTY_BUFFER); … … 369 369 370 370 SDL_mutexV(self->socketMutex); 371 break;371 continue; 372 372 } 373 373
Note: See TracChangeset
for help on using the changeset viewer.