temp commit
Changed upload logic

If peer stops sharing in middle of upload, he will no longer get upload benefit.