+		std::cerr << "stoped polling messages" <<  std::endl;
不应该这样