Fixed working with socket in PeerToPeerExchanger.