Swarm: Fix some incorrect status for file transfer
Sometimes, when transferring a file, the status stays "connecting" even if the transfer is done and finished.
Sometimes, when transferring a file, the status stays "connecting" even if the transfer is done and finished.