comparison src/protocols/msn/slp.c @ 9788:1e9ecca6c97e

[gaim-migrate @ 10656] "ixes sending declines when we would decline a request to an MSN file xfer. Fixes accidentally having 2 xfers of the same file in the transfer dialog when sending through MSN and SILC. Fixes crash when cancelling MSN file transfers. Should fix crash when removing old MSN transfers from the xfer window in MSN. Fixes MSN crash when the remote side sends a decline after we've canceled locally." --Dave West committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 20 Aug 2004 03:44:46 +0000
parents 35f22ba01bd7
children d0c196ebe176
comparison
equal deleted inserted replaced
9787:904b757835ca 9788:1e9ecca6c97e
90 90
91 send_ok(slpcall, slpcall->branch, "application/x-msnmsgr-sessionreqbody", 91 send_ok(slpcall, slpcall->branch, "application/x-msnmsgr-sessionreqbody",
92 content); 92 content);
93 93
94 g_free(content); 94 g_free(content);
95 gaim_xfer_add(xfer);
96 msn_slplink_unleash(slpcall->slplink); 95 msn_slplink_unleash(slpcall->slplink);
97 } 96 }
98 97
99 void 98 void
100 msn_xfer_cancel(GaimXfer *xfer) 99 msn_xfer_cancel(GaimXfer *xfer)
101 { 100 {
102 MsnSlpCall *slpcall; 101 MsnSlpCall *slpcall;
103 char *content; 102 char *content;
103
104 g_return_if_fail(xfer != NULL);
105 g_return_if_fail(xfer->data != NULL);
104 106
105 slpcall = xfer->data; 107 slpcall = xfer->data;
106 108
107 if (gaim_xfer_get_status(xfer) == GAIM_XFER_STATUS_CANCEL_LOCAL) 109 if (gaim_xfer_get_status(xfer) == GAIM_XFER_STATUS_CANCEL_LOCAL)
108 { 110 {