| 273 |
273 |
| 274 avdata = ggp_avatar_get_avdata(gc); |
274 avdata = ggp_avatar_get_avdata(gc); |
| 275 g_assert(pending_update == avdata->current_update); |
275 g_assert(pending_update == avdata->current_update); |
| 276 avdata->current_update = NULL; |
276 avdata->current_update = NULL; |
| 277 |
277 |
| 278 if (!purple_http_response_is_successfull(response)) |
278 if (!purple_http_response_is_successful(response)) |
| 279 { |
279 { |
| 280 purple_debug_error("gg", "ggp_avatar_buddy_update_received: bad" |
280 purple_debug_error("gg", "ggp_avatar_buddy_update_received: bad" |
| 281 " response while getting avatar for %u: %s\n", |
281 " response while getting avatar for %u: %s\n", |
| 282 pending_update->uin, |
282 pending_update->uin, |
| 283 purple_http_response_get_error(response)); |
283 purple_http_response_get_error(response)); |
| 386 purple_http_conn_get_purple_connection(http_conn); |
386 purple_http_conn_get_purple_connection(http_conn); |
| 387 |
387 |
| 388 if (!PURPLE_CONNECTION_IS_VALID(gc)) |
388 if (!PURPLE_CONNECTION_IS_VALID(gc)) |
| 389 return; |
389 return; |
| 390 |
390 |
| 391 if (!purple_http_response_is_successfull(response)) { |
391 if (!purple_http_response_is_successful(response)) { |
| 392 purple_debug_error("gg", "ggp_avatar_own_sent: " |
392 purple_debug_error("gg", "ggp_avatar_own_sent: " |
| 393 "avatar not sent. %s\n", |
393 "avatar not sent. %s\n", |
| 394 purple_http_response_get_error(response)); |
394 purple_http_response_get_error(response)); |
| 395 return; |
395 return; |
| 396 } |
396 } |