comparison libpurple/connection.c @ 20068:affc480cc570

It's even better when code compiles. Remove references to disconnection reasons that I removed.
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 17 Sep 2007 16:52:38 +0000
parents 143c6f34c6eb
children d3bd5414eb0f
comparison
equal deleted inserted replaced
20067:143c6f34c6eb 20068:affc480cc570
502 if (description == NULL) { 502 if (description == NULL) {
503 purple_debug_error("connection", "purple_connection_error_reason: check `description != NULL' failed\n"); 503 purple_debug_error("connection", "purple_connection_error_reason: check `description != NULL' failed\n");
504 description = _("Unknown error"); 504 description = _("Unknown error");
505 } 505 }
506 506
507 g_assert (reason >= 0 && reason < PURPLE_NUM_REASONS); 507 g_assert (reason < PURPLE_NUM_REASONS);
508 508
509 /* If we've already got one error, we don't need any more */ 509 /* If we've already got one error, we don't need any more */
510 if (gc->disconnect_timeout) 510 if (gc->disconnect_timeout)
511 return; 511 return;
512 512
527 gboolean 527 gboolean
528 purple_connection_reason_is_fatal (PurpleDisconnectReason reason) 528 purple_connection_reason_is_fatal (PurpleDisconnectReason reason)
529 { 529 {
530 switch (reason) 530 switch (reason)
531 { 531 {
532 case PURPLE_REASON_NONE_SPECIFIED:
533 case PURPLE_REASON_NETWORK_ERROR: 532 case PURPLE_REASON_NETWORK_ERROR:
534 return FALSE; 533 return FALSE;
535 case PURPLE_REASON_REQUESTED:
536 case PURPLE_REASON_AUTHENTICATION_FAILED: 534 case PURPLE_REASON_AUTHENTICATION_FAILED:
537 case PURPLE_REASON_ENCRYPTION_ERROR: 535 case PURPLE_REASON_ENCRYPTION_ERROR:
538 case PURPLE_REASON_NAME_IN_USE: 536 case PURPLE_REASON_NAME_IN_USE:
539 case PURPLE_REASON_CERT_NOT_PROVIDED: 537 case PURPLE_REASON_CERT_NOT_PROVIDED:
540 case PURPLE_REASON_CERT_UNTRUSTED: 538 case PURPLE_REASON_CERT_UNTRUSTED: