Fixed bug in p2pclient.