| 443 |
443 |
| 444 static void send_later_cb(gpointer data, gint source, const gchar *error) { |
444 static void send_later_cb(gpointer data, gint source, const gchar *error) { |
| 445 PurpleConnection *gc = data; |
445 PurpleConnection *gc = data; |
| 446 struct simple_account_data *sip; |
446 struct simple_account_data *sip; |
| 447 struct sip_connection *conn; |
447 struct sip_connection *conn; |
| 448 |
|
| 449 if (!PURPLE_CONNECTION_IS_VALID(gc)) |
|
| 450 { |
|
| 451 if (source >= 0) |
|
| 452 close(source); |
|
| 453 return; |
|
| 454 } |
|
| 455 |
448 |
| 456 if(source < 0) { |
449 if(source < 0) { |
| 457 purple_connection_error_reason(gc, |
450 purple_connection_error_reason(gc, |
| 458 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
451 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
| 459 _("Could not connect")); |
452 _("Could not connect")); |
| 1732 |
1725 |
| 1733 static void login_cb(gpointer data, gint source, const gchar *error_message) { |
1726 static void login_cb(gpointer data, gint source, const gchar *error_message) { |
| 1734 PurpleConnection *gc = data; |
1727 PurpleConnection *gc = data; |
| 1735 struct simple_account_data *sip; |
1728 struct simple_account_data *sip; |
| 1736 struct sip_connection *conn; |
1729 struct sip_connection *conn; |
| 1737 |
|
| 1738 if (!PURPLE_CONNECTION_IS_VALID(gc)) |
|
| 1739 { |
|
| 1740 if (source >= 0) |
|
| 1741 close(source); |
|
| 1742 return; |
|
| 1743 } |
|
| 1744 |
1730 |
| 1745 if(source < 0) { |
1731 if(source < 0) { |
| 1746 purple_connection_error_reason(gc, |
1732 purple_connection_error_reason(gc, |
| 1747 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
1733 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
| 1748 _("Could not connect")); |
1734 _("Could not connect")); |