Mercurial > pidgin
comparison libpurple/protocols/novell/novell.c @ 20778:8174f6999308
Sprinkle gc->wants_to_die = TRUE liberally around connection errors that really
ought to have been setting it already so that it is always set when a
disconnection reason is fatal. In a couple of other places, fix the reason to
be more accurate and not be fatal.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Fri, 05 Oct 2007 18:33:27 +0000 |
parents | f3cfcbbac3d8 |
children | 682543aced31 |
comparison
equal
deleted
inserted
replaced
20777:c40416c4eca6 | 20778:8174f6999308 |
---|---|
2176 /* TODO: Would be nice to prompt if not set! | 2176 /* TODO: Would be nice to prompt if not set! |
2177 * purple_request_fields(gc, _("Server Address"),...); | 2177 * purple_request_fields(gc, _("Server Address"),...); |
2178 */ | 2178 */ |
2179 | 2179 |
2180 /* ...but for now just error out with a nice message. */ | 2180 /* ...but for now just error out with a nice message. */ |
2181 purple_connection_error_reason (gc, PURPLE_REASON_OTHER_ERROR, | 2181 gc->wants_to_die = TRUE; |
2182 purple_connection_error_reason (gc, PURPLE_REASON_INVALID_SETTINGS, | |
2182 _("Unable to connect to server. Please enter the " | 2183 _("Unable to connect to server. Please enter the " |
2183 "address of the server you wish to connect to.")); | 2184 "address of the server you wish to connect to.")); |
2184 return; | 2185 return; |
2185 } | 2186 } |
2186 | 2187 |
2204 | 2205 |
2205 user->conn->ssl_conn->data = purple_ssl_connect(user->client_data, | 2206 user->conn->ssl_conn->data = purple_ssl_connect(user->client_data, |
2206 user->conn->addr, user->conn->port, | 2207 user->conn->addr, user->conn->port, |
2207 novell_ssl_connected_cb, novell_ssl_connect_error, gc); | 2208 novell_ssl_connected_cb, novell_ssl_connect_error, gc); |
2208 if (user->conn->ssl_conn->data == NULL) { | 2209 if (user->conn->ssl_conn->data == NULL) { |
2210 gc->wants_to_die = TRUE; | |
2209 purple_connection_error_reason (gc, | 2211 purple_connection_error_reason (gc, |
2210 PURPLE_REASON_ENCRYPTION_ERROR, | 2212 PURPLE_REASON_ENCRYPTION_ERROR, |
2211 _("Error. SSL support is not installed.")); | 2213 _("Error. SSL support is not installed.")); |
2212 } | 2214 } |
2213 } | 2215 } |