Mercurial > pidgin.yaz
comparison libgaim/protocols/irc/irc.c @ 14248:4975f529d909
[gaim-migrate @ 16930]
And this needs to be done before calling gaim_connection_error().
The IRC PPRL should only free the sslconn if the connection is
canceled half-way through, or if the connection has completed and
the user signs offline. If the connection fails normally
then sslconn.c is responsible for destroying the sslconn.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 21 Aug 2006 02:05:55 +0000 |
parents | c0d06ccd038b |
children | baff095b146c |
comparison
equal
deleted
inserted
replaced
14247:c0d06ccd038b | 14248:4975f529d909 |
---|---|
409 gpointer data) | 409 gpointer data) |
410 { | 410 { |
411 GaimConnection *gc = data; | 411 GaimConnection *gc = data; |
412 struct irc_conn *irc = gc->proto_data; | 412 struct irc_conn *irc = gc->proto_data; |
413 | 413 |
414 irc->gsc = NULL; | |
415 | |
414 switch(error) { | 416 switch(error) { |
415 case GAIM_SSL_CONNECT_FAILED: | 417 case GAIM_SSL_CONNECT_FAILED: |
416 gaim_connection_error(gc, _("Connection Failed")); | 418 gaim_connection_error(gc, _("Connection Failed")); |
417 break; | 419 break; |
418 case GAIM_SSL_HANDSHAKE_FAILED: | 420 case GAIM_SSL_HANDSHAKE_FAILED: |
419 gaim_connection_error(gc, _("SSL Handshake Failed")); | 421 gaim_connection_error(gc, _("SSL Handshake Failed")); |
420 break; | 422 break; |
421 } | 423 } |
422 | |
423 irc->gsc = NULL; | |
424 } | 424 } |
425 | 425 |
426 static void irc_close(GaimConnection *gc) | 426 static void irc_close(GaimConnection *gc) |
427 { | 427 { |
428 struct irc_conn *irc = gc->proto_data; | 428 struct irc_conn *irc = gc->proto_data; |