libpurple/protocols/yahoo/yahoo_packet.c

branch
cpw.resiak.disconnectreason
changeset 20460
5282ce7ac330
parent 19859
71d37b57eff2
child 21279
40685e1f50ca
equal deleted inserted replaced
20459:db73082a228c 20460:5282ce7ac330
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 }

mercurial