Make still_connecting() false if network not initialized, to fix confusing error msg.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user