mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
Don't propogate chat when queue too full. This *should* only impact
tests since users won't keep chatting at a non-responsive friend.
This commit is contained in:
parent
32150049e2
commit
573a87993e
1 changed files with 8 additions and 4 deletions
|
@ -611,10 +611,14 @@ server_initClientConnection( ServerCtxt* server, XWStreamCtxt* stream )
|
|||
static void
|
||||
sendChatTo( ServerCtxt* server, XP_U16 devIndex, const XP_UCHAR const* msg )
|
||||
{
|
||||
XWStreamCtxt* stream = messageStreamWithHeader( server, devIndex,
|
||||
XWPROTO_CHAT );
|
||||
stringToStream( stream, msg );
|
||||
stream_destroy( stream );
|
||||
if ( comms_canChat( server->vol.comms ) ) {
|
||||
XWStreamCtxt* stream = messageStreamWithHeader( server, devIndex,
|
||||
XWPROTO_CHAT );
|
||||
stringToStream( stream, msg );
|
||||
stream_destroy( stream );
|
||||
} else {
|
||||
XP_LOGF( "%s: dropping chat %s; queue too full?", __func__, msg );
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue