comparison libpurple/protocols/msn/slplink.c @ 30068:dbe96260108c

It seems like aMSN can get a bit stuck when using multiple file transfers, and the user could accept a file transfer a second time (it seems to fix itself eventually.) We don't want to try and start an xfer again or bad things might happen.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 18 May 2010 06:36:35 +0000
parents 4463cd2aba2d
children 11e748b759a2
comparison
equal deleted inserted replaced
30067:ccae796bdbad 30068:dbe96260108c
506 { 506 {
507 MsnSlpMessage *slpmsg; 507 MsnSlpMessage *slpmsg;
508 PurpleXfer *xfer; 508 PurpleXfer *xfer;
509 509
510 xfer = (PurpleXfer *)slpcall->xfer; 510 xfer = (PurpleXfer *)slpcall->xfer;
511 if (purple_xfer_get_status(xfer) >= PURPLE_XFER_STATUS_STARTED)
512 return;
513
511 purple_xfer_ref(xfer); 514 purple_xfer_ref(xfer);
512 purple_xfer_start(xfer, -1, NULL, 0); 515 purple_xfer_start(xfer, -1, NULL, 0);
513 if (purple_xfer_get_status(xfer) != PURPLE_XFER_STATUS_STARTED) { 516 if (purple_xfer_get_status(xfer) != PURPLE_XFER_STATUS_STARTED) {
514 purple_xfer_unref(xfer); 517 purple_xfer_unref(xfer);
515 return; 518 return;