Bug 998175 - Properly handle concurrent file transfers

Will need to refine the function to be a getter if you apply my suggestion above.