previously after file transfer control did not go back to c_peer function. Solved it