diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-21 22:48:44 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-21 22:48:44 +0200 | 
| commit | 35f6677c07770f0323872e4edddefb7b752e50bd (patch) | |
| tree | 799e9533f49b4bdb02896a98e21a69a10db3fa6f /protocols/jabber/jabber.c | |
| parent | 3b3cd693845539938baf5e26c80234f03ebf870c (diff) | |
Proper detections of errors from *_connect() and added a "Connecting"
message in jabber_login().
Diffstat (limited to 'protocols/jabber/jabber.c')
| -rw-r--r-- | protocols/jabber/jabber.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 3a2cb246..fd8b6128 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -158,6 +158,8 @@ static void jabber_login( account_t *acc )  	else  		connect_to = jd->server; +	set_login_progress( gc, "Connecting" ); +	  	/* For non-SSL connections we can try to use the port # from the SRV  	   reply, but let's not do that when using SSL, SSL usually runs on  	   non-standard ports... */ @@ -170,8 +172,13 @@ static void jabber_login( account_t *acc )  	{  		jd->fd = proxy_connect( connect_to, srv ? srv->port : set_getint( &acc->set, "port" ), jabber_connected_plain, gc );  	} -	  	g_free( srv ); +	 +	if( jd->fd == -1 ) +	{ +		hide_login_progress( gc, "Could not connect to server" ); +		signoff( gc ); +	}  }  static void jabber_close( struct gaim_connection *gc ) | 
