run resumed transfers immediately, do not wait for free transfer slot

The resumed transfer still uses a slot, so will delay other, queued
transfers from starting.
This commit is contained in:
Joey Hess 2012-08-12 12:36:08 -04:00
parent b6b8f6da9c
commit a73e271d60
3 changed files with 20 additions and 10 deletions

View file

@ -209,7 +209,8 @@ startTransfer t = do
- forget that old pid, and start a new one. -}
liftIO $ updateTransferInfo dstatus t $ info
{ transferPid = Nothing }
liftIO $ Transferrer.transferThread dstatus slots t info
liftIO $ Transferrer.transferThread
dstatus slots t info inImmediateTransferSlot
getCurrentTransfers :: Handler TransferMap
getCurrentTransfers = currentTransfers