From 89ec7987e68838da050ddf9e8c3af4b6454be7ad Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 13 Jul 2018 18:20:56 -0700 Subject: [PATCH] move test to after db's inited to avoid crash --- xwords4/linux/cursesmain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xwords4/linux/cursesmain.c b/xwords4/linux/cursesmain.c index 8f7431559..823b815ba 100644 --- a/xwords4/linux/cursesmain.c +++ b/xwords4/linux/cursesmain.c @@ -1914,11 +1914,6 @@ cursesmain( XP_Bool isServer, LaunchParams* params ) setupUtil( &g_globals.cGlobals ); setupCursesUtilCallbacks( &g_globals, g_globals.cGlobals.util ); - if ( params->runSMSTest ) { - smsproto_runTests(g_globals.cGlobals.util->mpool, - g_globals.cGlobals.params->dutil ); - } - initFromParams( &g_globals.cGlobals, params ); #ifdef XWFEATURE_RELAY @@ -2044,6 +2039,11 @@ cursesmain( XP_Bool isServer, LaunchParams* params ) }; linux_sms_init( params, myPhone, myPort, &smsProcs, &g_globals.cGlobals ); } + + if ( params->runSMSTest ) { + smsproto_runTests(g_globals.cGlobals.util->mpool, + g_globals.cGlobals.params->dutil ); + } #endif XWStreamCtxt* stream = NULL;