Fix crash in comparison of service ids.

This commit is contained in:
chris_kohlhoff 2007-02-13 12:06:43 +00:00
parent e0415012c7
commit 43c4408213

View File

@ -177,7 +177,7 @@ private:
bool service_id_matches(const asio::io_service::service& service,
const asio::detail::service_id<Service>& /*id*/)
{
return !!(*service.type_info_ == typeid(Service));
return service.type_info_ != 0 && *service.type_info_ == typeid(Service);
}
// Mutex to protect access to internal data.