Fixed checkP2P multiple threads issue