From 41472c4984f2fd5c236fbacdae0f60750ac12f5a Mon Sep 17 00:00:00 2001 From: eehouse Date: Sun, 31 Jan 2010 21:13:31 +0000 Subject: [PATCH] assert have at least one remote player --- xwords4/common/server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xwords4/common/server.c b/xwords4/common/server.c index 95f8dc92b..b8ad1a8e3 100644 --- a/xwords4/common/server.c +++ b/xwords4/common/server.c @@ -1174,8 +1174,7 @@ server_sendInitialMessage( ServerCtxt* server ) CurGameInfo localGI; XP_U32 gameID = server->vol.gi->gameID; - XP_STATUSF( "server_sendInitialMessage" ); - + XP_ASSERT( server->nv.nDevices > 1 ); for ( deviceIndex = 1; deviceIndex < server->nv.nDevices; ++deviceIndex ) { RemoteAddress* addr = &server->nv.addresses[deviceIndex]; @@ -1191,7 +1190,7 @@ server_sendInitialMessage( ServerCtxt* server ) stream_putU8( stream, dict_isUTF8(dict)? STREAM_VERS_UTF8:STREAM_VERS_41B4 ); - XP_STATUSF( "putting gameID %lx into msg", gameID ); + XP_LOGF( "putting gameID %lx into msg", gameID ); stream_putU32( stream, gameID ); makeSendableGICopy( server, &localGI, deviceIndex );