[Positioner] EvAAL: handle empty results' lists

This commit is contained in:
Matteo Cypriani 2012-07-10 16:11:25 +02:00
parent 2d2b8551fb
commit db63c88a45
1 changed files with 3 additions and 2 deletions

View File

@ -77,8 +77,9 @@ bool OutputTCPSocketEvAAL::init_socket()
*/
void OutputTCPSocketEvAAL::write(const ResultList &results)
{
assert(results.get_results().size() == 1) ;
write(results.get_results()[0]) ;
assert(results.get_results().size() <= 1) ;
if (! results.get_results().empty())
write(results.get_results()[0]) ;
}