Ignore:
Timestamp:
2006-10-21T20:48:44Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4b0d805
Parents:
3b3cd693
Message:

Proper detections of errors from *_connect() and added a "Connecting"
message in jabber_login().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    r3b3cd693 r35f6677  
    159159                connect_to = jd->server;
    160160       
     161        set_login_progress( gc, "Connecting" );
     162       
    161163        /* For non-SSL connections we can try to use the port # from the SRV
    162164           reply, but let's not do that when using SSL, SSL usually runs on
     
    171173                jd->fd = proxy_connect( connect_to, srv ? srv->port : set_getint( &acc->set, "port" ), jabber_connected_plain, gc );
    172174        }
    173        
    174175        g_free( srv );
     176       
     177        if( jd->fd == -1 )
     178        {
     179                hide_login_progress( gc, "Could not connect to server" );
     180                signoff( gc );
     181        }
    175182}
    176183
Note: See TracChangeset for help on using the changeset viewer.