From 79542106c19116e6c2bdcd65a26ba62e87435b9a Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 16 Apr 2012 03:51:30 -0400 Subject: [PATCH] Make still_connecting() false if network not initialized, to fix confusing error msg. --- src/frontend/stmclient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/stmclient.h b/src/frontend/stmclient.h index d13bb26..f97a1fb 100644 --- a/src/frontend/stmclient.h +++ b/src/frontend/stmclient.h @@ -56,7 +56,7 @@ private: bool still_connecting( void ) { /* Initially, network == NULL */ - return ( !network ) || ( network->get_remote_state_num() == 0 ); + return network && ( network->get_remote_state_num() == 0 ); } public: