Mercurial > pidgin
comparison libpurple/protocols/yahoo/yahoo_packet.c @ 20132:b4ac690a2225
Add disconnection reasons to yahoo
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Wed, 03 Oct 2007 17:44:29 +0000 |
parents | 44b4e8bd759b |
children | ba41f2a60253 |
comparison
equal
deleted
inserted
replaced
20131:885320299776 | 20132:b4ac690a2225 |
---|---|
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 } |