158
This commit is contained in:
@@ -242,7 +242,6 @@ void TimeoutSerial::readCompleted(const boost::system::error_code& error,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_LOG_TRIVIAL(debug) << "Error =" << error.value() ;
|
|
||||||
//In case a asynchronous operation is cancelled due to a timeout,
|
//In case a asynchronous operation is cancelled due to a timeout,
|
||||||
//each OS seems to have its way to react.
|
//each OS seems to have its way to react.
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@@ -256,7 +255,7 @@ void TimeoutSerial::readCompleted(const boost::system::error_code& error,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else //Linux
|
#else //Linux
|
||||||
if(error.value()==125) return; //Linux outputs error 125
|
if(error.value()==125 || error.value() == 158) return; //Linux outputs error 125
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
result=resultError;
|
result=resultError;
|
||||||
|
|||||||
Reference in New Issue
Block a user