| 302 |
302 |
| 303 if (ret < 0 && errno == EAGAIN) |
303 if (ret < 0 && errno == EAGAIN) |
| 304 return; |
304 return; |
| 305 else if (ret < 0) { |
305 else if (ret < 0) { |
| 306 /* TODO: what to do here - do we really have to disconnect? */ |
306 /* TODO: what to do here - do we really have to disconnect? */ |
| 307 purple_connection_error(yd->gc, _("Write Error")); |
307 purple_connection_error_reason(yd->gc, PURPLE_REASON_NETWORK_ERROR, |
| |
308 _("Write Error")); |
| 308 return; |
309 return; |
| 309 } |
310 } |
| 310 |
311 |
| 311 purple_circ_buffer_mark_read(yd->txbuf, ret); |
312 purple_circ_buffer_mark_read(yd->txbuf, ret); |
| 312 } |
313 } |