mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
timeout isn't an assertion failure
This commit is contained in:
parent
2b1dd9ec55
commit
a24e7d18b3
1 changed files with 2 additions and 5 deletions
|
@ -100,7 +100,7 @@ queue_packet( CeSocketWrapper* self, XP_U8* packet, XP_U16 len )
|
||||||
logLastError( "ReleaseMutex" );
|
logLastError( "ReleaseMutex" );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
XP_ASSERT(0);
|
XP_LOGF( "timed out" );
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
|
@ -259,11 +259,8 @@ WriterThreadProc( LPVOID lpParameter )
|
||||||
{
|
{
|
||||||
CeSocketWrapper* self = (CeSocketWrapper*)lpParameter;
|
CeSocketWrapper* self = (CeSocketWrapper*)lpParameter;
|
||||||
|
|
||||||
/* PENDING: Start up network so we'll have a socket to use. Once the
|
|
||||||
socket's open and connected, start the reader thread.*/
|
|
||||||
connectSocket( self );
|
connectSocket( self );
|
||||||
|
|
||||||
|
|
||||||
/* Then loop waiting for packets to write to it. */
|
/* Then loop waiting for packets to write to it. */
|
||||||
for ( ; ; ) {
|
for ( ; ; ) {
|
||||||
XP_U8* packet;
|
XP_U8* packet;
|
||||||
|
@ -432,6 +429,6 @@ ce_sockwrap_send( CeSocketWrapper* self, XP_U8* buf, XP_U16 len,
|
||||||
}
|
}
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
} /* ce_sockwrap_send */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue