Fixing possible race condition in P2PClient
Changing from peerId to peerID in download manager