From b768d8fccc10293a1c31f840d3f6aadeffb13da0 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 20 Jan 2013 09:22:35 -0800 Subject: [PATCH] fall through to using hard-coded maxsocks value --- xwords4/relay/xwrelay.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index 9a354e0a0..d54678463 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -1577,9 +1577,7 @@ main( int argc, char** argv ) if ( nWorkerThreads == 0 ) { (void)cfg->GetValueFor( "NTHREADS", &nWorkerThreads ); } - if ( g_maxsocks == -1 ) { - (void)cfg->GetValueFor( "MAXSOCKS", &g_maxsocks ); - } else { + if ( g_maxsocks == -1 && !cfg->GetValueFor( "MAXSOCKS", &g_maxsocks ) ) { g_maxsocks = 100; } char serverNameBuf[128];