comparison plugins/yay/outgoing.c @ 1570:4a47a459cc98

[gaim-migrate @ 1580] i hate everyone (it's dead week and i have a final *today*) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 14 Mar 2001 20:11:04 +0000
parents c3afde736a8a
children e739d3dddf4c
comparison
equal deleted inserted replaced
1569:446536be85dd 1570:4a47a459cc98
33 if (send(conn->socket, buf, len, 0) != len) { 33 if (send(conn->socket, buf, len, 0) != len) {
34 int type = conn->type; 34 int type = conn->type;
35 yahoo_close(session, conn); 35 yahoo_close(session, conn);
36 YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "error sending"); 36 YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "error sending");
37 if (type == YAHOO_CONN_TYPE_DUMB) 37 if (type == YAHOO_CONN_TYPE_DUMB)
38 CALLBACK(session, YAHOO_HANDLE_DISCONNECT); 38 if (session->callbacks[YAHOO_HANDLE_DISCONNECT].function)
39 (*session->callbacks[YAHOO_HANDLE_DISCONNECT].function)(session);
39 return 0; 40 return 0;
40 } 41 }
41 42
42 return len; 43 return len;
43 } 44 }