```
if (it == queue_.end())
   return;

...
```